mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-09 02:49:02 +00:00
Disable LiveReload server by default
Change the default value of the configuration property `spring.devtools.livereload.enabled` to `false`. See gh-47387 Signed-off-by: Vedran Pavic <vedran@vedranpavic.com>
This commit is contained in:
committed by
Phillip Webb
parent
41a399c5ae
commit
b3133d4ec1
+1
-1
@@ -193,7 +193,7 @@ public class DevToolsProperties {
|
||||
/**
|
||||
* Whether to enable a livereload.com-compatible server.
|
||||
*/
|
||||
private boolean enabled = true;
|
||||
private boolean enabled = false;
|
||||
|
||||
/**
|
||||
* Server port.
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ public final class LocalDevToolsAutoConfiguration {
|
||||
* Local LiveReload configuration.
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBooleanProperty(name = "spring.devtools.livereload.enabled", matchIfMissing = true)
|
||||
@ConditionalOnBooleanProperty(name = "spring.devtools.livereload.enabled")
|
||||
static class LiveReloadConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
+1
-1
@@ -131,7 +131,7 @@ public class RemoteClientConfiguration implements InitializingBean {
|
||||
* LiveReload configuration.
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@ConditionalOnBooleanProperty(name = "spring.devtools.livereload.enabled", matchIfMissing = true)
|
||||
@ConditionalOnBooleanProperty(name = "spring.devtools.livereload.enabled")
|
||||
static class LiveReloadConfiguration {
|
||||
|
||||
private final DevToolsProperties properties;
|
||||
|
||||
Reference in New Issue
Block a user