Eclipse Luna 4.4.1 spring boot 1.3.0.M4,spring-dev-tools热重装不能正常工作

时间:2015-08-19 11:16:06

标签: java eclipse spring spring-boot eclipse-luna

我与Spring开发工具和Eclipse的情况类似,我们用IDEA描述here。我已经按照this文章中描述的配置进行了操作,但是热重新加载不起作用。我缺少什么想法?这将是一个非常酷的功能。

EDIT。热重载=任何类路径文件更改都将自动触发应用程序重启。

My Gradle构建脚本是:

buildscript {
    ext {
        springBootVersion = '1.3.0.M4'
    }
    repositories {
        maven { url "http://repo.spring.io/snapshot" }
        maven { url "http://repo.spring.io/milestone" }
        mavenCentral()
    }
    dependencies {
        classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") 
        classpath("io.spring.gradle:dependency-management-plugin:0.5.2.RELEASE")
    }
}

依赖项:

dependencies { 
compile("org.springframework.boot:spring-boot-devtools")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-freemarker")
compile("org.springframework.boot:spring-boot-starter-hateoas")
compile("org.springframework.boot:spring-boot-starter-jdbc")
compile("org.springframework.boot:spring-boot-starter-jersey")
compile("org.springframework.boot:spring-boot-starter-web")
runtime("com.h2database:h2")
runtime("mysql:mysql-connector-java")
testCompile("org.springframework.boot:spring-boot-starter-test")}

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。出于某种原因,Eclipse仍然尝试使用以前的Spring Boot版本(1.2.5),之后我删除并重新导入项目热重载开始工作。