After packaging the project, I run it on mac and centos,but get this exception:
Error: Could not find or load main class com.slm.proguard.example.spring.boot.Application
My command is:
java -cp spring.boot.jar.:$CLASSPATH com.slm.proguard.example.spring.boot.Application
Thanks fo the issue.
I missed this info in the README file and now added a description about editing the java.version parameter in accordance with the using JDK version.
After packaging the project, I run it on mac and centos,but get this exception: Error: Could not find or load main class com.slm.proguard.example.spring.boot.Application
My command is: java -cp spring.boot.jar.:$CLASSPATH com.slm.proguard.example.spring.boot.Application
My env is based JDK8,so I modifed the pom.xml
diff --git a/pom.xml b/pom.xml