Specify main class Spring-Boot command line
Following command will do the trick:
java -cp my-app.jar -Dloader.main=myApplicationClass org.springframework.boot.loader.PropertiesLauncher
There's a launcher for that in Spring Boot already. You need to build the jar with that as the Main-Class (by setting the layout
in the build config).