SpringBoot项目中全局日期转换 在配置文件中配置: spring jackson: date-format: yyyy-MM-dd HH:mm:ss 就可以将返回实体中的date类型的属性,转换成如上格式的字符串