springboot打包jar中没有主清单属性,在pom.xml中添加如下设置

<build>
  <plugins>
  	<plugin>
  		<groupId>org.springframework.boot</groupId>
 		<artifactId>spring-boot-maven-plugin</artifactId>
  	</plugin>
  </plugins>
 </build>

然后输入mvn install

就会重新打包,完毕