idea gradle 热部署

1、在build.gradle文件根节点中加入

bootRun {
//开启页面热加载功能
addResources = true
}

2、在build.gradle文件dependencies下加入

compile("org.springframework.boot:spring-boot-devtools")

3.开启IDEA自动编译【这个和maven+idea一致】

4.registry 【这个和maven+idea一致】

windows:ctrl + alt + shift + /,mac: command + alt + shift + /

5.配置thymeleaf.cache为false

来源:https://www.cnblogs.com/linkstar/p/8245480.html

猜你喜欢

转载自www.cnblogs.com/lhblog1994/p/9704216.html