SpringBoot使用FastJson后,接口返回中文乱码的问题解决


springboot 中,使用fastjson替换jackson ,接口返回出现乱码,解决方法如下: @Bean public HttpMessageConverters fastJsonHttpMessageConverter() { FastJsonHttpMessageConverte

SpringBoot入门:SpringBoot使用FastJson解析JSON数据


引入fastjson依赖库 : <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.31</version> </dependency> 官方文