@Controller @RequestMapping("/login") public class LoginController { @ResponseBody @RequestMapping(value = "/verify.do", method = RequestMethod.POST) public User login(@RequestParam("username") String userName, @RequestParam(…
1.问题现象Tomcat7+Spring4.1.4,返回json字符串时发生406错误 The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers. HTTP Status 406 - type Status report messa…