美文网首页
idea热部署到tomcat

idea热部署到tomcat

作者: ggcoder | 来源:发表于2020-05-20 16:04 被阅读0次

热部署正解

1.在底部功能导航中找到“Application Servers”,右键选择“Edit Configuration”


image.png

2.在deployment选项卡中将项目部署方式设置为“exployed”类型


image.png

3.在Server选项卡中选择“On frame deactivation”为“Update classes and resources”


image.png

4.关键点:把最下面Before launch中除了“Build ‘xxx’ artifact”之外的Build都删掉

5.实验证明只能自动更新class和jsp等,对于xml配置,无法更新。看到下面的提示代表已经自动更新了


image.png

6.手动催更方法


image.png

参考:https://blog.csdn.net/qq_16148137/article/details/99694566

相关文章

网友评论

      本文标题:idea热部署到tomcat

      本文链接:https://www.haomeiwen.com/subject/dmrnohtx.html