Demo project for Java Applications running inside containers - Using Spring Boot
This application was used for the following blog post: https://developers.redhat.com/blog/2017/03/14/java-inside-docker/
-
Open a command prompt and navigate to the root directory of this application.
-
Type this command to build and execute the application:
mvn clean compile spring-boot:run
-
The application will be running at the following URL: http://localhost:8080/api/hello
-
You can trigger the allocation of 80% of JVM memory accessing http://localhost:8080/api/memory