Skip to content

spring.messages.cache-duration does not define a DurationUnit #12183

@snicoll

Description

@snicoll

The cacheDuration property has no default but we set it to -1 in the auto-configuration if no value is specified. I guess having -1ms as the default value is a bit funky?

Right now we document -1 in the appendix so we should make up our mind about this one. Either remove the default from the documentation or set it in the property. Since that default value is a bit special, I am tempted to remove it from the appendix.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions