在linux中运行springboot项目jar包提示no main manifest attribute错误

环境描述:在linux中运行报错no main manifest attribute

解决方法1 :在pom.xml中添加

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

…解决方法很多,待补充

猜你喜欢

转载自blog.csdn.net/ABestRookie/article/details/109144879