maven项目下tomcat使用

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

posted @ 2022-09-19 19:07  lwx_R  阅读(86)  评论(0)    收藏  举报