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模式运行项目。

 

相关文章:

  • 2021-08-29
  • 2021-08-20
  • 2021-11-29
  • 2021-05-06
  • 2021-08-15
  • 2021-07-20
  • 2021-06-09
猜你喜欢
  • 2021-07-12
  • 2021-08-09
  • 2021-11-17
  • 2022-12-23
  • 2022-01-05
  • 2021-06-16
  • 2021-08-08
相关资源
相似解决方案