Skip to content

@DateTimeFormat is override when I set spring.mvc.date-format #23890

Closed
@lutongzero

Description

@lutongzero

example:
@GetMapping public void DateFormateTest(@DateTimeFormat(pattern = "yyyyMMdd")Date date) { }

In application.properties:
spring.mvc.date-format=yyyyMMddHH

I must set the parameter date fotmat is yyyyMMddHH.Is it reasonable?

Metadata

Metadata

Assignees

Labels

status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions