mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Merge branch '4.1.x'
Closes gh-51748
This commit is contained in:
+8
-4
@@ -26,12 +26,16 @@ include::example$running/devtools-pom.xml[tags=devtools]
|
||||
|
||||
When `devtools` is running, it detects changes when you recompile your application and automatically refreshes it.
|
||||
This works for not only resources but code as well.
|
||||
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:
|
||||
|
||||
[source,properties]
|
||||
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:
|
||||
|
||||
[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.
|
||||
|
||||
Reference in New Issue
Block a user