标签:tpm ide sage oid 精度 figure div http nbsp
@Configuration public class SessionConfig implements WebMvcConfigurer{ @Override public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { FastJsonHttpMessageConverter fastJsonConverter = new FastJsonHttpMessageConverter(); FastJsonConfig fjc = new FastJsonConfig(); SerializeConfig serializeConfig = SerializeConfig.globalInstance; serializeConfig.put(Long.class , ToStringSerializer.instance); serializeConfig.put(Long.TYPE , ToStringSerializer.instance); fjc.setSerializeConfig(serializeConfig); fastJsonConverter.setFastJsonConfig(fjc); converters.add(fastJsonConverter); } }
FastJson 配置Long转String类型 , 解决前后端交互, id过长,失去精度的问题
标签:tpm ide sage oid 精度 figure div http nbsp
原文地址:https://www.cnblogs.com/Uzai/p/10304544.html