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

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

一、pom中引入依赖

<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


相关文章
相关标签/搜索