① 引入pom依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency> ② application.properties文件 #热部署 spring.thymeleaf.cache=false spring.devtools.restart.enabled=true