1.导入依赖(jackson) 2.配置web.xml 3.配置springmvc 4.测试 Restcontrolller功能替代controller和responseBody 直接返回json字符串