how to build and run jar code example
Example 1: run jar file
java -jar yourFile.jar
Example 2: how to run jar from command line
#Run jar from cmd
java -jar <jar-file-name>.jar
#Run spring boot app
mvn spring-boot:run
java -jar yourFile.jar
#Run jar from cmd
java -jar <jar-file-name>.jar
#Run spring boot app
mvn spring-boot:run