cl_303303303 发表于 2017-3-1 12:43:55

idea maven jetty插件热部署

  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>
页: [1]
查看完整版本: idea maven jetty插件热部署