需要在WEB模块的POM配置文件中加如下
<build>
<finalName>ssm-web</finalName>
<plugins>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.0-beta-1</version>
<configuration>
<url>http://localhost:8080/manager/html</url>
<server>tomcat-local</server>
<contextReloadable>false</contextReloadable>
<uriEncoding>UTF-8</uriEncoding>
<port>8888</port>
<path>/ssm</path>
</configuration>
</plugin>
</plugins>
</build>
maven中使用tomcat
最新推荐文章于 2024-02-28 15:31:04 发布