SpringMVC4-JSON2
json用起来
- 导入json
- 配置json
- 新建对象
- 转化为json
1 | <dependency> |
1 | <!--解决json 乱码配置--> |
1 |
|
fastjson用起来
1 | <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson --> |
1 |
|
1 | <dependency> |
1 | <!--解决json 乱码配置--> |
1 | @ResponseBody |
1 | <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson --> |
1 |
|