报错信息如图所示:
解决方法:
方法一:给pom.xml添加如下配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
方法二:
添加main方法
版权声明:本文为zhangle416520原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。