背景:我们在开发web项目时,如果修改了前端文件如jsp,css等,希望能够无需restart server直接看到效果
修改IDEA配置:
-
在intellij idea的tomcat配置中,有如下的默认配置:
Paste_Image.png
-
修改配置如下:
Paste_Image.png
配置说明:
On Update Action: Redeploy
On frame deactivation:Update classes and resources
其他说明:
如果On frame deactivation的下拉框中没有选项Update classes and resources,需要修改tomcat的deployment为war exploded

而不是:war

网友评论