原因
pom
文件中maven
配置项错误,导致打爆出来的jar
包中没有主类的路径信息;- 没有继承自
spring-boot-starter-parent
,缺少默认的maven
配置;
解决方案:
pom
文件中补充maven
配置内容
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.8</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
- Springboot attribute manifest maven mainspringboot attribute manifest maven quot main springboot attribute attributes signature manifest错误 目录 工程maven main aprlifecyclelistener springboot catalina main class maven java main springboot datasource configure attribute springboot项目maven springboot镜像maven springboot原理maven