Problem with Spring 3 + JSON : HTTP status 406?

前端 未结 5 2205
一整个雨季
一整个雨季 2021-02-09 01:20

I\'m trying to get a list of Cities by sending the State name through Ajax in my SpringMVC 3.0 project. For the purpose, I\'ve used the following call (using jQuery) in my JSP:

5条回答
  •  死守一世寂寞
    2021-02-09 01:55

    I too had a similar problem while using the Apache HTTPClient to call few services. The problem is the client and not the server. I used a HTTPRequester with header accepting application/json and it worked fine.

提交回复
热议问题