首页 > 其他分享 >maven项目下tomcat使用

maven项目下tomcat使用

时间:2022-09-19 19:23:58浏览次数:63  
标签:tomcat7 插件 8080 tomcat 项目 plugin maven

1.添加插件

 <plugin>
          <groupId>org.apache.tomcat.maven</groupId>
          <artifactId>tomcat7-maven-plugin</artifactId>
          <version>2.2</version>
          <configuration>
            <port>8080</port>
            <path>/test</path>
            <uriEncoding>UTF-8</uriEncoding>
            <server>tomcat7</server>
          </configuration>

        </plugin>

2.编译模式改为tomcat7:run

标签:tomcat7,插件,8080,tomcat,项目,plugin,maven
From: https://www.cnblogs.com/lwx11111/p/16708729.html

相关文章