zl程序教程

您现在的位置是:首页 >  Java

当前栏目

使用tomcat 7的 maven插件启动项目

2023-04-18 14:39:38 时间
<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
    <configuration>
        <!-- application path always starts with /-->
        <path>/</path>
        <port>80</port>
    </configuration>
</plugin>

pom文件中加入上面的配置,执行的时候执行tomcat7:run就可以了。