1.修改tomcat7-maven-plugin-2.2.jar包

重新下载这个包,并删除maven自动下载的jar,手动放进去
请点击下载 tomcat7-maven-plugin-2.2.jar

2.tomcat插件配置

<plugins>
<!-- 配置Tomcat插件 -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<configuration>
<port>8001</port>
<path>/</path>
<staticContextPath>/img</staticContextPath>
<staticContextDocbase>D:/images/</staticContextDocbase>
<contextReloadable>false</contextReloadable>
<useTestClasspath>true</useTestClasspath>
</configuration>
</plugin>
</plugins>

 

相关文章:

  • 2021-04-15
  • 2021-04-16
  • 2021-07-22
  • 2021-09-22
  • 2021-11-30
  • 2021-11-30
  • 2021-07-23
猜你喜欢
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2021-07-03
  • 2022-02-18
相关资源
相似解决方案