1.点击idea中tomcat设置tomcat
2.点击deployment查看Deploy at the server startup 中tomcat每次所运行的包是 xxxx:war 仍是其余,若是是xxxx:war包,请更换.点击旁边绿色加号,选择 xxxx:war exploded ,而后将 xxxx:war 点击红色删除掉微信
3.而后在server中 将 "On Update action"、"On frame deactivation" 都选择 update classes and resourceside
4.有的人说必须debug才行,可是我测试了,直接run也能够实现热部署测试