From 036caad4e2b852d87a09a5c4e3366aecd598c586 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 14 Sep 2026 20:25:05 -0700 Subject: [PATCH] Fix reference to restart property Correct incorrect `spring.devtools.remote.restart.enabled` property reference to `spring.devtools.restart.enabled`. Closes gh-51743 --- .../docs/antora/modules/maven-plugin/pages/run.adoc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build-plugin/spring-boot-maven-plugin/src/docs/antora/modules/maven-plugin/pages/run.adoc b/build-plugin/spring-boot-maven-plugin/src/docs/antora/modules/maven-plugin/pages/run.adoc index b06bf52fd78..cce15350459 100644 --- a/build-plugin/spring-boot-maven-plugin/src/docs/antora/modules/maven-plugin/pages/run.adoc +++ b/build-plugin/spring-boot-maven-plugin/src/docs/antora/modules/maven-plugin/pages/run.adoc @@ -28,12 +28,15 @@ When `devtools` is running, it detects changes when you recompile your applicati This works for not only resources but code as well. It also provides a LiveReload server so that it can automatically trigger a browser refresh whenever things change. -Devtools can also be configured to only refresh the browser whenever a static resource has changed (and ignore any change in the code). -Just include the following property in your project: +Devtools can also be configured to only refresh the browser when static resources change, ignoring any code changes. +To do this, you need to disable devtools code change restarts by setting the following property in your project: -[source,properties] +[configprops%novalidate,yaml] ---- -spring.devtools.remote.restart.enabled=false +spring: + devtools: + restart: + enabled: false ---- Prior to `devtools`, the plugin supported hot refreshing of resources by default which has now been disabled in favour of the solution described above.