idea jetty maven 热部署

mac2022-06-30  17

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>

转载于:https://www.cnblogs.com/MIXP/p/7350815.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)