将maven项目打包后,启动时出现SpringBoot01-1.0-SNAPSHOT.jar中没有主清单属性的提示的解决办法
1.在pom.xml文件中插入
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>