Re: Spring Boot Choose Main Class #spring #java #springboot

Mrc0113
 

thanks Steve - at first I thought this would work, but it looks like Spring Boot is using "org.springframework.boot.loader.JarLauncher" as the main class so I don't want to override that. It looks like when run in an executable jar the JarLauncher looks at the Start-Class in the MANIFEST.MF file, but it doesn't seem to be respecting that in cf. 
I sshed into the cf container and found that the MANIFEST looks correct (it has the main-class set to JarLauncher and start-class set to my class), but it also seems that during the cf push the executable jar was exploded. It seems that after being exploded the JarLauncher class is no longer respecting the "Start-Class" set in the Manifest.  Any insight into that? 

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.