Install jdk-8 to the system and add it to system path. Run following command to verify jdk installation
java -version
./gradlew clean test
./gradlew bootRun --args ' --spring.profiles.active=dev'
src/main/resources/application-dev.properties
./gradlew bootRun --args ' --spring.profiles.active=prod --spring.config.location=/home/config/application-prod.properties'
After running the app go to the following URL in the browser
http://localhost:8080
./gradlew bootJar
java -jar jarName
java -jar jarName --spring.profiles.active=dev
java -jar jarName --spring.profiles.active=prod --spring.config.location=/home/config/application-prod.properties