tomcat热部署(不需要重启项目)

第一种方式:

tomcat/conf/server.xml下

<Context docBase="D:\apache-tomcat-9.0.16\hjh\apache-tomcat-9.0.16\hjh\hstartGen" path="/hstartGen" reloadable="true" source="org.eclipse.jst.jee.server:hstartGen"/>

修改  reloadable="false"

第二种方式:

1、双击tomcat

 

 2、点击modules视图,点击edit

 3、打钩 auto reloading enabled

猜你喜欢

转载自www.cnblogs.com/hongjiahui/p/12403730.html