1.使用jackson类库

2.使用springmvc的@RestController注解

3.使用fastjson实现


https://zhidao.baidu.com/question/570099526.html