tomcat 6/7 maven 自动发布+热部署方法


 1 <plugin>
 2      <groupId>org.apache.tomcat.maven</groupId>
 3      <artifactId>tomcat7-maven-plugin</artifactId>
 4      <version>2.0-beta-1</version>
 5      <configuration>
 6        <uriEncoding>utf-8</uriEncoding>
 7        <port>80</port>
 8        <path>/</path>
 9      </configuration>
10 </plugin>

启动方式: tomcat7:run 或者 tomcat6:run

本地无需安装tomcat,会自动下载安装,用着很爽.


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM