springboot打包运行报:no main manifest attribute, in XXXX的解决办法
在POM.xml文件中,添加:
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> <goal>build-info</goal> </goals> </execution> </executions> </plugin> </plugins> </build>