问题:application.properties中的如下配置不生效,返回时间戳
spring.jackson.date-format=yyyy-MM-dd HH:mm:ss原因分析:
注意:不能增加@EnableWebMvc注解。
Finally, if you opt out of the Spring Boot default MVC configuration by providing your own @EnableWebMvc configuration, you can take control completely and do everything manually by using getMessageConverters from WebMvcConfigurationSupport. 《Spring Boot Reference Guide》以上来自https://www.52jingya.com【惊讶】,多多关照。