需要在pom文件里加入插件配置,因为不加springboot的插件配置,无法将springboot打包进去启动。
没有这个配置的packaging 之去找主函数。
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>