SpringBoot项目修改html后不即时编译


springboot templates 下的 html 修改后无法达到即时编译的效果,搜索资料后记录笔记。
原文地址:https://www.cnblogs.com/jiangbei/p/8439394.html

1、pom中引入依赖

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

optional:默认的值为false, 即子项目必须依赖,为true后,子项目非必须依赖。

2、设置一

IDE 左上角:

File -> Settings -> Build,Execution,Deplyment -> Compiler
选中打勾 Build project automatically

3、设置二

组合键:

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


 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM