mfreshmen / java-container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-container

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/

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

About

License:Apache License 2.0


Languages

Language:Java 90.8%Language:Shell 9.2%