New to both AWS and Spring Boot. I have successfully deployed my spring boot application to an AWS server, as shown here:
However, I do not know how to run the program now that it is on the server. Main method is straightforward:
public static void main(String[] args) {
SpringApplication.run(Application.class);
}
Do I need to implement a REST call just to run the main? How do I start this program remotely now that it is deployed?
CodePudding user response:
You can deploy a Spring BOOT WEB app to the Cloud by using
To learn how to create a Spring BOOT Web app that can invoke AWS Services using the AWS SDK for Java V2 (for example, Amazon DynamoDB) and deploy it to the Cloud, see:
Creating your first AWS Java web application
This app uses Thymeleaf to define the UI for the app. However, if you do not have a UI, only controllers, you can still deploy the same way and then send a GET/POST requests to the Spring Controllers.