-
“File” -> “Settings” -> “Build,Execution,Deplyment” -> “Compiler”,选中打钩 “Build project automatically”
-
组合键:“Shift+Ctrl+Alt+/” ,选择 “Registry” ,选中打钩“compiler.automake.allow.when.app.running”
-
修改application.yml
spring: # thymeleaf视图解析器 thymeleaf: prefix: classpath:/templates/ suffix: .html mode: HTML5 encoding: utf-8 # 重点!! cache: false
-
修改启动参数Edit Configurations…
-
修改html文件后刷新浏览器即可
Thymeleaf即时生效
最新推荐文章于 2023-07-12 19:20:00 发布