IDEA + maven热部署及自动编译不生效问题

1、application.properties文件中关闭缓存spring.thymeleaf.cache=fasle

2、设置项目自动编译

配置好上面两步后,项目还是不能自动进行热部署或自动编译,原因maven未对项目进行编译到target相应的目录中。则进行操作第三步骤。

3、Ctrl+Shift+Alt+/ 选择Registry,勾选compiler.automake.allow.when.app.running

 

posted on 2021-08-24 15:57  caigan  阅读(784)  评论(0编辑  收藏  举报