Skip to content

Make formatter value configurable through Spring EL/Property PlaceHolder [SPR-7087] #11747

@spring-projects-issues

Description

@spring-projects-issues

Donny A. Wijaya opened SPR-7087 and commented

It would be great if we are allowed to configure the formatter (and validator) value through Spring EL or Property PlaceHolder
For example:

@DateTimeFormat(pattern="#{dateTime.pattern}")
private Date registrationDate;

and in application.properties loaded by Property PlaceHolder

dateTime.pattern=dd/mm/yyyy

Affects: 3.0.2

Attachments:

Issue Links:

Referenced from: commits 2a140ad

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions