Problem with Spring 3 + JSON : HTTP status 406?

前端 未结 5 2204
一整个雨季
一整个雨季 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:44

    Using jQuery , you can set contentType to desired one (application/json; charset=UTF-8' here) and set same header at server side.

    REMEMBER TO CLEAR CACHE WHILE TESTING.

提交回复
热议问题