maven的pom.xml配置

本文介绍了如何在Maven项目中配置Tomcat插件,并详细解释了各参数的意义。同时,针对端口冲突的问题提供了解决方案。

添加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(端口冲突)  

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

 

转载于:https://www.cnblogs.com/antyi/p/6258636.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值