使用idea對spring boot項目打jar和war包[文件]

pom.xml文件編寫spa

打JAR包時.net

    <groupId>com.netcorner</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <description>demo</description>
    <packaging>jar</packaging>

 打WAR包時code

  <groupId>com.netcorner</groupId>
    <artifactId>demo</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demo</name>
    <description>demo</description>
    <packaging>war</packaging>

而後IDEA中找到install並雙擊運行xml

編譯成功後blog

相關文章
相關標籤/搜索