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

posted @ 2018-09-25 23:21  lh20180920  阅读(1511)  评论(1编辑  收藏  举报