zoukankan      html  css  js  c++  java
  • SpringBoot idea maven打包war

    什么都不需要配置,跟着做!

    pom.xml修改打包类型为war

    <packaging>war</packaging>

    排除内置Tomcat

            <!--因配置外部TOMCAT 而配置-->
            <dependency>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-starter-tomcat</artifactId>
                <scope>provided</scope>
            </dependency>

    打包过程跳过测试

        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <configuration>
                        <skip>true</skip>
                    </configuration>
                </plugin>
            </plugins>
        </build>

    然后直接点击IDEA 右边的MAVEN面板,双击package.

  • 相关阅读:
    P1443 马的遍历
    P1747 好奇怪的游戏
    蜀绣
    Five hundred miles
    如果没有你
    Yellow
    流星

    深入理解计算机中的 csapp,h和csapp.c
    可迭代的集合类型使用foreach语句
  • 原文地址:https://www.cnblogs.com/sweetchildomine/p/6861249.html
Copyright © 2011-2022 走看看