Intellij Idea + spring-boot + thymleaf實現熱部署

maven設置spring

<!-- hot swapping, disable cache for template, enable live reload -->
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <optional>true</optional>
</dependency>

spring設置windows

而後在application.propeties中添加spring.thymeleaf.cache = falseapp

Intellij idea中的設置maven

  • File –> Setting –> Build, Execution, Deployment –> Compiler –> check this Build project automaticallyide

  • Press SHIFT+CTRL+A (Win/Lin) or Command+CTRL+A (Mac) to open a pop-up windows, type registryspring-boot

  • Find and check this option compiler.automake.allow.when.app.runningui

相關文章
相關標籤/搜索