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…
最近在使用JQuery的ajax方法时,要求返回的数据为json数据,在处理的过程中遇到下面的几个问题,那就是采用不同的方式来生成json数据的时候,在$.ajax方法中应该是如何来处理的,下面依次来进行说明,由于本人使用的是asp.net,所以处理的页面都是采用.net来做的!其他的方式应该是相同的吧 首先给出要传的json数据:[{"demoData":"This Is The JSON Data"}] 1,使用普通的aspx页…