This is an example Spring Boot application for Qt Cloud Services - Managed Application Runtime ("MAR"). More information about Spring Boot.
See the Managed Application Runtime getting started documentation at Qt Cloud Services Developer Documentation
Upon deployment Qt Cloud Services MAR container provides an environmental variable $PORT for which the HTTPS requests hitting Qt Cloud Services load balancer SSL port are internally forwarded into.
You can start this application from the application root directory with the same following command as declared in the Procfile once the project has been built with Maven:
mvn clean install
java $JAVA_OPTS -Dserver.port=$PORT -jar target/*.jar
You may replace the $PORT environmental variable with the chosen port number that your local shell process is privileged to run. If the $PORT variable is omitted, the HTTP server defaults the port 8080.
mvn clean install
java -Dserver.port=8080 -jar target\mar-sample-spring-boot-0.0.1-SNAPSHOT.jar
Once the server has been started with the default port number, you may test the application with your web browser at address http://127.0.0.1:8080.
Please see the Qt Cloud Services Developer Documentation
NOTE: Without tweaking any command-line Java arguments regarding the heap memory usage deploy the sample app only to the instance which fulfills the following Runtime Size: ar-1-small (2CU, 512MB)