maven tomcat 插件

在 pom.xml 中添加如下内容

<!-- 配置 tomcat 插件 -->
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <configuration>
                <path>/</path><!-- 浏览器地址 不需要工程名了 例如:localhost:8080 -->
                <port>8080</port>
            </configuration>
        </plugin>
    </plugins>
</build>

 

posted @ 2018-04-03 17:39  方方方方方方  阅读(71)  评论(0编辑  收藏  举报