maven配置tomcat7
生活随笔
收集整理的這篇文章主要介紹了
maven配置tomcat7
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在maven項目中我們有時會不喜歡用jetty啟動,習慣了tomcat的同學會想用tomcat啟動相應的服務,通過以下配置我們就可以指定我們的project通過指定的tomcat服務啟動了。
在project的pom文件中加入以下代碼:
<build><finalName>my-proxy</finalName><plugins><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.1</version><configuration><port>9090</port><path>/</path><uriEncoding>UTF-8</uriEncoding><finalName>my-proxy</finalName><server>tomcat7</server></configuration></plugin></plugins></build>
總結
以上是生活随笔為你收集整理的maven配置tomcat7的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 必应Bing输入法如何打出特殊符号
- 下一篇: ipad pro能否无线充电(iPad官