Skip to content
Advertisement

How do I tell Spring Boot which main class to use for the executable jar?

JavaScript

My project has more than one class with a main method. How do I tell the Spring Boot Maven plugin which of the classes it should use as the main class?

Advertisement

Answer

Add your start class in your pom:

JavaScript

or

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement