打包fail失败错误信息
错误原因
原因在于maven引入了这个,它会在打包时会去扫描项目main方法入口,如果没有就会如上报错
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
解决方式
1.创建springboot启动类
2.更改pom.xml配置为
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
<executions>
<execution>
<phase>none</phase>
</execution>
</executions>
</plugin>