Im my Spring Boot application, I have some controllers that accept a date as query parameter:
@RestController public class MyController { @GetMapping public
You can use spring.mvc.format.date, spring.mvc.format.time and spring.mvc.format.date-time
spring.mvc.format.time
spring.mvc.format.date-time
For example: spring.mvc.format.time=HH:mm:ss spring.mvc.format.date=iso spring.mvc.format.date-time=iso-offset
spring.mvc.format.time=HH:mm:ss
spring.mvc.format.date=iso
spring.mvc.format.date-time=iso-offset
as in the example above, you can use shortcuts iso аnd iso-offset from spring boot 2.4.1
iso
iso-offset