Running with Windows PowerShell I need this format (with quotes):
java -cp .\myjarfile.jar -D"loader.main=com.app.etc.FullyQualifiedMainClass" org.springframework.boot.loader.PropertiesLauncher
To clarify the accepted answer: you can directly change the loader.main property in the META-INF / MANIFEST.MF file in the bank if you are ok with a more static solution.
Andrew
source share