一.Tomcat热部署
1. 在顶部找到程序运行操作栏, 点击Edit Configurations
2.点击你要配置的tomcat,点击deployment,点击”+“
3.选择中间的Server,在On 'Update' action: 里面选择Update classes and resources
在On frame deactivation: 里面选择Update classes and resources
4.apply--->add
二.spring boot程序热部署
1.在顶部找到程序运行操作栏, 点击Edit Configurations,点击要配置的程序
2.选择中间的Configuration下面的spring boot,
在On 'Update' action: 里面选择Update classes and resources
在On frame deactivation: 里面选择Update classes and resources
3.apply--->add
三.其他热部署
1.settings--->build--->compiler--->Build project automatically--->apply--->ok
2.按住ctrl + shift +alt + / 选择Registry,勾选compiler.automake.allow.when.app.running