springBoot开启热部署
这里使用devtools工具开启热部署
〇、搭建springbboot基础环境
一、添加依赖
二、修改pom.xml文件的 spring-boot-maven-plugin 插件为:
注意点:
注意: 页面如果用了thymeleaf模板 ,需要修改配置文件为:(其他模板也可能要做类似配置,配置原理都是关闭缓存,写法不同)
spring.thymeleaf.cache=false
这里使用devtools工具开启热部署
注意: 页面如果用了thymeleaf模板 ,需要修改配置文件为:(其他模板也可能要做类似配置,配置原理都是关闭缓存,写法不同)
spring.thymeleaf.cache=false