首页 > 其他 > 详细

idea maven jetty插件热部署

时间:2016-08-28 19:32:27      阅读:193      评论:0      收藏:0      [点我收藏+]

maven tomcat插件好像无法进行热部署,jetty可以如下配置实现热部署,但是idea无法进行自动编译,所以需要如下快捷键

  • Ctrl+Shift+F9,编译
  • Ctrl+F9,生成项目
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.1.v20120215</version>
<configuration>
<scanIntervalSeconds>1</scanIntervalSeconds><!-- 多少秒进行一次热部署 -->
<webApp>
<contextPath>/wp</contextPath>
</webApp>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>80</port>
</connector>
</connectors>
</configuration>
</plugin>

idea maven jetty插件热部署

原文:http://www.cnblogs.com/qiumingcheng/p/5815629.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!