Add spring.resources.add-mappings property

Add `spring.resources.add-mappings` allowing users to configure if
resource mappings should be added or not.

Fixes gh-804
This commit is contained in:
Phillip Webb
2014-05-09 23:29:03 +01:00
parent 4b51b6f9df
commit 1c0cce441d
4 changed files with 95 additions and 16 deletions

View File

@@ -73,6 +73,7 @@ content into your application; rather pick only the properties that you need.
spring.view.prefix= # MVC view prefix
spring.view.suffix= # ... and suffix
spring.resources.cache-period= # cache timeouts in headers sent to browser
spring.resources.add-mappings=true # if default mappings should be added
# THYMELEAF ({sc-spring-boot-autoconfigure}/thymeleaf/ThymeleafAutoConfiguration.{sc-ext}[ThymeleafAutoConfiguration])
spring.thymeleaf.prefix=classpath:/templates/