mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Merge branch '1.4.x' into 1.5.x
This commit is contained in:
commit
4e9abbbc25
@ -777,10 +777,13 @@ Maven and Gradle plugins.
|
||||
[[using-boot-devtools-property-defaults]]
|
||||
=== Property defaults
|
||||
Several of the libraries supported by Spring Boot use caches to improve performance. For
|
||||
example, Thymeleaf will cache templates to save repeatedly parsing XML source files.
|
||||
example, <<spring-boot-features#boot-features-spring-mvc-template-engines,template engines>>
|
||||
will cache compiled templates to avoid repeatedly parsing template files.
|
||||
Also, Spring MVC can add HTTP caching headers to responses when serving static resources.
|
||||
|
||||
Whilst caching is very beneficial in production, it can be counter productive during
|
||||
development. If you make a change to a template file in your IDE, you'll likely want to
|
||||
immediately see the result.
|
||||
development, preventing you from seeing the changes you just made in your application.
|
||||
For this reason, spring-boot-devtools will disable those caching options by default.
|
||||
|
||||
Cache options are usually configured by settings in your `application.properties` file.
|
||||
For example, Thymeleaf offers the `spring.thymeleaf.cache` property. Rather than needing
|
||||
|
Loading…
Reference in New Issue
Block a user