關於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
相關文章
相關標籤/搜索