- Starting Spring Boot App after deploying it to CF
Re: Starting Spring Boot App after deploying it to CF
toggle quoted messageShow quoted text
On Thu, Sep 10, 2015 at 12:33 PM, Qing Gong <qinggong(a)gmail.com> wrote:
I built a Spring Boot App and using java -jar SpringBootApp.jar to run it,
the code works as expected. The System.out printed as expected.
public static void main(String args)
System.out.println("Spring Boot Test Message");
However, when deployed in CF using cf push myApp -p SpringBootApp.jar, the
main() was not executed. I have tried using META-INF/MANIFEST.MF to include
the Main-Class, or using config/java-main.yml, or manifest.yml to include
java_main_class, none worked. The app just would not start. Do I need to do
anything else to trigger the app to start its main method?
Join email@example.com to automatically receive all group messages.