java-on-azure-examples icon indicating copy to clipboard operation
java-on-azure-examples copied to clipboard

Build and Deploy a Spring Boot Application using GitHub Actions

Open karthirm opened this issue 1 year ago • 4 comments

Purpose

  • This PR contain all the steps to create a spring boot application with a REST end point and deploy it in Azure using App Service and Github Actions

Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type

What kind of change does this Pull Request introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[x] Other... Please describe:

A documentation kind of PR which describes all the steps involved in deploying a simple Spring Boot Application

How to Test

  • Get the code
git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
mvn clean install
  • Test the code
Deploy the code and hit the endpoint which is present in the newly created Azure App Service.
To test it locally, hit the endpoint present in the ProductController class - http://localhost:8080/message

What to Check

Verify that the following are valid

  • Check the endpoint in the Controller class.
  • Deploy the application in Azure and see if it works after appending the endpoint ("/message") at the end of the URL.

Other Information

  • This is a simple Spring Boot Application with just one REST endpoint

karthirm avatar Apr 12 '24 15:04 karthirm

@microsoft-github-policy-service agree

karthirm avatar Apr 13 '24 09:04 karthirm

@karthirm Thank you for your contribution. This repository has a certain structure to it, and we will evaluate to see if we can get your contribution in the same format.

mnriem avatar Apr 15 '24 16:04 mnriem