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

Steve Taylor
 


Regards,
--Steve

On Tue, Apr 16, 2019 at 1:32 PM <marcd@...> wrote:
Hi, 

I have a Spring Boot project which has multiple main classes (Yes - I know not best practices, but I'm not able to easily change it). The project is being built by maven. 
Locally I was able to specify a "start-class" on the spring-boot-maven-plugin and that works to define which main I want to run, however when I push the app to PCF that doesn't seem to work. 
It looks like my app is using the java buildpack... Is there someway to specify the main class that I want to run in PCF?  Maybe by settings an environment variable or as part of the cf push command? 

thanks! 

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