springboot templates 下的 html 修改后没法达到即时编译的效果,搜索资料后记录笔记。
原文地址:https://www.cnblogs.com/jiangbei/p/8439394.htmlhtml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
optional:默认的值为false, 即子项目必须依赖,为true后,子项目非必须依赖。spring
IDE 左上角:springboot
File -> Settings -> Build,Execution,Deplyment -> Compiler
选中打勾 Build project automaticallyapp
组合键:spring-boot
Shift+Ctrl+Alt+/ ,选择 Registry ,选中打勾 compiler.automake.allow.when.app.runningui