Visitar URL original
DevTools sets deprecated spring.mustache.cache property by mmoayyed · Pull Request #30774 · spring-projects/spring-boot · GitHub
Skip to content

DevTools sets deprecated spring.mustache.cache property - #30774

Closed
mmoayyed wants to merge 1 commit into
spring-projects:2.7.xfrom
mmoayyed:patch-1
Closed

mmoayyed wants to merge 1 commit into
spring-projects:2.7.xfrom
mmoayyed:patch-1

Conversation

@mmoayyed

Copy link
Copy Markdown
Contributor

Spring Boot 2.7 RC1, on startup, issues the following warning:

The use of configuration keys that have been renamed was found in the environment:

Property source 'devtools':
        Key: spring.mustache.cache
                Replacement: spring.mustache.servlet.cache


Each configuration key has been temporarily mapped to its replacement for your convenience. To silence this 
warning, please update your configuration to use the new keys.

As the message suggests, this seems to be issued by the "DevTools" property source, and spring.mustache.cache should be replaced with spring.mustache.servlet.cache, to avoid configuration warnings on startup.

`spring.mustache.cache` should be replaced with `spring.mustache.servlet.cache`, to avoid configuration warnings on startup.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue that has not yet been triaged. Contributions will not be accepted. label Apr 22, 2022
@bclozel bclozel added type: enhancement A general enhancement and removed status: waiting-for-triage An issue that has not yet been triaged. Contributions will not be accepted. labels Apr 22, 2022
@bclozel bclozel added this to the 2.7.0 milestone Apr 22, 2022
@bclozel

bclozel commented Apr 22, 2022

Copy link
Copy Markdown
Member

See #30273

@snicoll snicoll added type: bug A general bug and removed type: enhancement A general enhancement labels Apr 23, 2022
@wilkinsona wilkinsona changed the title Update spring.mustache.cache property to match replacement DevTools sets deprecated spring.mustache.cache property Apr 25, 2022
@wilkinsona wilkinsona self-assigned this Apr 25, 2022
wilkinsona pushed a commit that referenced this pull request Apr 25, 2022
`spring.mustache.cache` should be replaced with
`spring.mustache.servlet.cache`, to avoid configuration warnings
on startup when using the properties migrator.

See gh-30774
@wilkinsona

Copy link
Copy Markdown
Member

Thanks very much, @mmoayyed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants