Spring project
- Add dependency in pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
- In IDEA file->settings->Build,Exeutiion, Deployment->Compiler and then check Build project automatically
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