From fe8eb801ff241d67030a94526bdd21e366ace662 Mon Sep 17 00:00:00 2001 From: lihengming <89921218@qq.com> Date: Wed, 28 Jun 2017 17:53:32 +0800 Subject: [PATCH] update > FastJsonpHttpMessageConverter4 change to FastJsonHttpMessageConverter4 --- .../java/com/company/project/configurer/WebMvcConfigurer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/company/project/configurer/WebMvcConfigurer.java b/src/main/java/com/company/project/configurer/WebMvcConfigurer.java index d3c45fa..7f876d7 100644 --- a/src/main/java/com/company/project/configurer/WebMvcConfigurer.java +++ b/src/main/java/com/company/project/configurer/WebMvcConfigurer.java @@ -4,7 +4,7 @@ package com.company.project.configurer; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.serializer.SerializerFeature; import com.alibaba.fastjson.support.config.FastJsonConfig; -import com.alibaba.fastjson.support.spring.FastJsonpHttpMessageConverter4; +import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter4; import com.company.project.core.Result; import com.company.project.core.ResultCode; import com.company.project.core.ServiceException; @@ -45,7 +45,7 @@ public class WebMvcConfigurer extends WebMvcConfigurerAdapter { //使用阿里 FastJson 作为JSON MessageConverter @Override public void configureMessageConverters(List> converters) { - FastJsonpHttpMessageConverter4 converter = new FastJsonpHttpMessageConverter4(); + FastJsonHttpMessageConverter4 converter = new FastJsonHttpMessageConverter4(); FastJsonConfig config = new FastJsonConfig(); config.setSerializerFeatures(SerializerFeature.WriteMapNullValue,//保留空的字段 SerializerFeature.WriteNullStringAsEmpty,//String null -> ""