IDEA changes the static resource (html) without restarting, it takes effect immediately

Spring project

  1. Add dependency in pom.xml
<dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-devtools</artifactId>
        <optional>true</optional>
</dependency>
  1. In IDEA file->settings->Build,Exeutiion, Deployment->Compiler and then check Build project automatically
    Insert picture description here

Method Two

The one I used, the one above is from the teacher, I haven’t tried it, this one was searched when I wanted to use it.

https://blog.csdn.net/weixin_43234960/article/details/101368542

Guess you like

Origin blog.csdn.net/weixin_49035356/article/details/109677394