在pom.xml中引入tomcat7插件,具体示例代码如下:
<project> <build> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <port>8080</port> <path>/</path> <uriEncoding>UTF-8</uriEncoding> <server>tomcat7</server> </configuration> </plugin> </plugins> </build> </project>
配置run tomcat
原文地址:https://www.cnblogs.com/yang-xiansen/p/10429440.html
时间: 2024-10-03 02:12:57