使用tomcat7-maven-plugin

功能:

(使用maven中的tomcat插件,就可以将tomcat集成到项目中,效果就是:在不同平台中无需配置tomcat就可以直接运行web)


 地址:

tomcat官网maven插件:http://tomcat.apache.org/maven-plugin.html

 

pom.xml

 <build>
        <plugins>
            <!--tomcat插件-->
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.1</version>
                <configuration>
                    <port>8000</port>
                    <path>/</path>
                </configuration>
            </plugin>
        </plugins>
    </build>

 

posted @ 2022-07-07 09:02  vkd  阅读(120)  评论(0编辑  收藏  举报