添加tomcat插件配置:

<!-- tomcat plugin -->
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<path>/</path>
<port>83</port>
<uriEncoding>UTF-8</uriEncoding>
<url>http://127.0.0.1/manager</url>
<server>tomcat7</server>
<contextReloadable>true</contextReloadable>
<warSourceDirectory>src/main/webapp</warSourceDirectory>
<contextReloadable>false</contextReloadable>
</configuration>
</plugin>
<!-- maven-assembly-plugin -->

 

其中port我为端口。

常见问题:

java.net.BindException: Address already in use: JVM_Bind <null>:8088(端口冲突)  

如出现以上问题请把端口号修改即可。

 

相关文章:

  • 2022-12-23
  • 2022-01-08
  • 2021-07-16
  • 2022-02-03
  • 2021-09-26
  • 2022-02-18
  • 2021-06-21
  • 2021-12-06
猜你喜欢
  • 2022-02-21
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2021-12-04
  • 2022-12-23
相关资源
相似解决方案