使用Spring Boot devtools 1.3解决了新的LiveReload功能问题.它不会在类更改时重新加载.我已经看到它使用IntelliJ @ Devoxx 2015进行了演示.是否需要启用一些IDE设置?我正在通过IDE运行,而不是通过Gradle运行.我尝试启用"自动生成项目",这似乎没有帮助.
它似乎正确加载并正在寻找正确的路径
2015-11-23 05:55:30.592 DEBUG 4700 --- [ restartedMain] o.s.boot.devtools.restart.Restarter : Starting application com.myapp.Application with URLs [file:/E:/Projects/myapp/build/classes/main/, file:/E:/Projects/myapp/build/resources/main/]
Run Code Online (Sandbox Code Playgroud)
我的文件
的build.gradle
buildscript {
ext {
springBootVersion = '1.3.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'idea'
apply plugin: 'spring-boot'
apply plugin: 'war'
war {
baseName = 'myapp'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" …Run Code Online (Sandbox Code Playgroud) 如何覆盖IntelliJ内部使用的值,例如此表达式:
Registry.intValue("a.b.c")
Run Code Online (Sandbox Code Playgroud)
我可以访问注册表,Registry.getInstance()但它不允许更新任何键/值对.
有小费吗?