在工作打包war只为1kb
错误代码:
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.4.RELEASE:repackage (default) on project demo: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.4.RELEASE:repackage failed: Unable to find a single main class from the following candidates [wztc.Application, wztc.WztcApplication] -> [Help 1]
错误截图:(请右击查看大图)
解决办法:
写了两个Application,所以出现打包错误。但是运行没有错误。删除其中一个application即可