Home > database >  How to run a Spring Boot program deployed on AWS
How to run a Spring Boot program deployed on AWS

Time:10-26

New to both AWS and Spring Boot. I have successfully deployed my spring boot application to an AWS server, as shown here:

Build Successful message

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 enter image description here

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.

  • Related