摘要:
问题起因:与前端对接接口发现日期时间输出格式是数组,而代码中又有ObjectMapper格式化日期配置 环境:springboot2.x+jdk1.8 相关代码配置类 @Configuration public class JacksonConfig { @Primary @Bean public 阅读全文
摘要:
主要使用以下2个API方法 1. public T readValue(String content, TypeReference valueTypeRef) 2. public T readValue(String content, JavaType valueType) 代码示例: Object 阅读全文