长枪不倒 发表于 2017-3-1 12:05:16

jetty 热部署

  1,在pom.xml文件中配置jetty插件的参数:scanIntervalSeconds



<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<scanIntervalSeconds>1</scanIntervalSeconds>
<stopPort>8080</stopPort>
<stopKey>bar</stopKey>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>8080</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
</configuration>
</plugin>
  2、以debug模式运行项目。
页: [1]
查看完整版本: jetty 热部署