springboot项目 java -jar xxx.jar 没有主清单属性解决方法

1.在pom文件中添加如下

在这里插入图片描述

    <plugins>
        <!--解决SpringBoot打包成jar后运行提示没有主清单属性-->
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <configuration>
				<fork>true</fork>
			</configuration>
        </plugin>
    </plugins>
posted @ 2019-05-11 12:30  ourlang  阅读(317)  评论(0编辑  收藏  举报