java - How do I tell Spring Boot which main class to use for the executable jar? -
execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.0.1.release:repackage failed: unable find single main class following candidates
my project has more 1 class main
method. how tell spring boot maven plugin of classes should use main class?
add start class in pom:
<properties> <!-- main class start executing java -jar --> <start-class>com.mycorp.starter.helloworldapplication</start-class> </properties>
Comments
Post a Comment