/java-container

Primary LanguageJavaApache License 2.0Apache-2.0

java-container

Demo project for Java Applications running inside containers - Using Spring Boot

Build and Deploy java-container locally

  1. Open a command prompt and navigate to the root directory of this application.

  2. Type this command to build and execute the application:

     mvn clean compile spring-boot:run
    
  3. The application will be running at the following URL: http://localhost:8080/api/hello

  4. You can trigger the allocation of 80% of JVM memory accessing http://localhost:8080/api/memory