SpringMVC中使用阿里fastjson替换jackson

1.在pom.xml中添加fastjson依赖项

        
            com.alibaba
            fastjson
            1.2.58
        

2. 在spring配置文件中配置消息解析器,注意该配置需要配置在标签内


   

       
           
       
   

你可能感兴趣的:(SpringMVC中使用阿里fastjson替换jackson)