Deploying a Spring App


You can find the step-by-step deployment guide here.

Hostman uses the following environment when building a Spring application:

  • OpenJDK 8, 11, 17, 18, or 19
  • Maven

Hostman will execute the following commands during the build:

apt install -y openjdk-{{env_version}}-jre-headless maven

The default start command is:

mvn spring-boot:run

Make sure that:

  • Your project has the pom.xml file.
  • The spring-boot-starter dependency is correctly defined in pom.xml.