将访问的Controller注解为@RestController @RestController其实是@ResponseBody和@Controller的组合 @Controller返回jsp,加入@Response返回json