how to run spring application using command line code example
Example 1: spring boot run command
mvn spring-boot:run
Example 2: run spring boot application command line
java -jar target/myJavaProject.jar
mvn spring-boot:run
java -jar target/myJavaProject.jar