<plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>8.1.16.v20140903</version>
                <configuration>
                    <webApp>
                        <!-- 应用名称 -->
                        <contextPath>/${artifactId}</contextPath>
                    </webApp>
                    <!-- 停止组合键 -->
                    <stopKey>CTRL+C</stopKey>
                    <!-- 端口 -->
                    <stopPort>8999</stopPort>
                    <!-- 每隔10s扫描配置文件是否被修改 -->
                    <scanIntervalSeconds>10</scanIntervalSeconds>
                    <scanTargets>
                        <!-- 扫描的配置文件路径 -->
                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
                    </scanTargets>
                </configuration>
            </plugin>

 

相关文章:

  • 2021-08-05
  • 2021-10-22
  • 2021-06-28
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-01-04
猜你喜欢
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-01-06
相关资源
相似解决方案