且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HTTP状态406.Spring MVC 3.2,jQuery,JSON

更新时间:2022-02-02 05:28:13

我遇到了同样的问题

通过 jQuery @RequestMapping 关于要使用的URL,编辑

From your jQuery and @RequestMapping about the URL to be used, edit

来自

  • getData.html

  • getData

是的,删除.html扩展名.

此外:您有url:'getData.html',@RequestMapping(value = "/getData" 他们不匹配.

Furthermore: You have url:'getData.html', and @RequestMapping(value = "/getData" They does not match.

更改自

  • `url:'getData.html'

  • `url:'getData'