标签:
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模式运行项目。
标签:
原文地址:http://www.cnblogs.com/yanyd/p/5767278.html