2017年2月26日星期日

spring boot打包错误Unable to find a single main class from the following candidates

因为spring发现了多个类似@SpringBootApplication的入口类,解决方法:
在pom.xml的<properties></properties>中增加:
<start-class>your/main/class</start-class>

参考:http://www.jianshu.com/p/b521f819b06a

没有评论:

发表评论