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

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -