no main manifest attribute

前言

springboot程序打jar包报错:no main manifest attribute

原因

pom文件未加打包的配置,导致找不到main方法

处理

在pom.xml文件里添加如下配置

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

猜你喜欢

转载自blog.csdn.net/Poppy_Evan/article/details/112299559
今日推荐