关于HTTP Status 406 – Not Acceptable

在SpringMVC返回JSON数据的时候页面一直报出HTTP Status 406 – Not Acceptablespring  直接上解决方案:mvc 在springmvc.xml配置文件中加上:code <mvc:default-servlet-handler/> <mvc:annotation-driven/> 而后就ok了!!!xml
相关文章
相关标签/搜索