Eclipse中Gradle+SpringBoot配置热部署

2016-12-07  本文已影响0人  周景
  1. 加入依赖jar

build.gradle

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

Project > Build Automatically(勾选)

src/main/java 右键 Build Path > Configure Output Folder 选择第二项 输入build/classes/main
src/main/resources 右键 Build Path > Configure Output Folder 选择第二项 输入build/classes/main


配置浏览器自动刷新

  1. Chrome安装LIveRoload插件

application.properties

spring.devtools.livereload.enabled = true
上一篇 下一篇

猜你喜欢

热点阅读