how to run spring boot application as java application code example
Example 1: run maven spring boot project command line
./mvnw spring-boot:run
Example 2: run spring boot application command line
java -jar target/myJavaProject.jar
./mvnw spring-boot:run
java -jar target/myJavaProject.jar