Solve springboot modify the page and the code will automatically restart

 

3.application.yml Configuration

spring.devtools.restart.enabled=false
spring.thymeleaf.cache=false

 

1. Modify the code to restart problem solving thymeleaf

Import jar package

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

2.application.yml Configuration

 


= false spring.thymeleaf.cache
----------------
Disclaimer: This article is the original article CSDN bloggers "DeBuggggggg", and follow CC 4.0 BY-SA copyright agreements, please attach a reprint the original source link and this statement.
Original link: https: //blog.csdn.net/u013294097/article/details/83090317

Guess you like

Origin www.cnblogs.com/yuhuameng/p/11531143.html