运行jar包报no main manifest attribute, in XXXX的解决办法

在pom文件添加如下代码重新打包即可

<plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
              <executions>
                  <execution>
                      <goals>
                          <goal>repackage</goal>
                          <goal>build-info</goal>
                      </goals>
                  </execution>
              </executions>
            </plugin>
        </plugins>
    </build>
© 版权声明
THE END
喜欢就支持一下吧
点赞7赞赏 分享