spring mvc 4.1 返回json報406錯誤的解決辦法spring
瀏覽器訪問,報json
The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers.瀏覽器
解決辦法,檢查springmvc的配置文件中有無mvc
<mvc:annotation-driven />