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:runMake sure that:
- Your project has the
pom.xmlfile. - The
spring-boot-starterdependency is correctly defined inpom.xml.