zoukankan      html  css  js  c++  java
  • 在idea中把springboot项目打成jar包遇到的问题(没有主清单属性)

    正确的姿势:
    <plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <executions>
    <execution>
    <goals>
    <goal>repackage</goal>
    </goals>
    </execution>
    </executions>
    </plugin>

    错误的姿势:
    <!--            <plugin>-->
    <!-- <groupId>org.springframework.boot</groupId>-->
    <!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
    <!-- <configuration>-->
    <!-- <fork>true</fork>-->
    <!-- <includeSystemScope>true</includeSystemScope>-->
    <!-- <skip>true</skip>-->
    <!-- </configuration>-->

    <!-- <executions>-->
    <!-- <execution>-->
    <!-- <goals>-->
    <!-- <goal>repackage</goal>-->
    <!-- </goals>-->
    <!-- </execution>-->
    <!-- </executions>-->
    <!-- </plugin>-->
  • 相关阅读:
    Fiddler 简介
    jQuery 属性操作
    Win7的虚拟Wi-Fi
    接口与内部类
    继承(二)
    J2EE框架(Struts&Hibernate&Spring)的理解
    继承(一)
    对象与类
    控制流程
    数据类型
  • 原文地址:https://www.cnblogs.com/duanqiao123/p/12054154.html
Copyright © 2011-2022 走看看