SpringBoot—默认的json解析方案

在SpringBoot的编写中常常用@RestController来代替@Controller 是因为 @RestController 集合了 HttpMessageConverter 来从中转换java代码,从而输出和输入json格式的数据。