 maven tomcat插件
maven tomcat插件
  # 引入插件
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <port>80</port> <!--端口号,默认是8080-->
                <path>/</path><!--访问路径,默认是项目名称-->
            </configuration>
        </plugin>
    </plugins>
</build>
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# 使用
右击项目-> maven run -> tomcat7:run
上次更新: 2023/09/22, 16:54:32
