正在验证SpringExceptionResolver,访问 http://localhost:8080/test/hello.json 不知为何报错?

来源:6-3 接口请求全局异常处理-设计与验证

全素小丸子

2018-12-12

图片描述报错:org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation

getter和setter方法已添加;
正在验证SpringExceptionResolver,访问 http://localhost:8080/test/hello.json 不知为何报错?

写回答

1回答

全素小丸子

提问者

2018-12-12

哦,我知道了,是spring-servlet.xml里,没有删除掉阿里的xmlns

1
0

Java开发企业级权限管理系统

源于企业真实Java项目,涉及大量高级技巧,覆盖权限管理开发技术

2262 学习 · 1347 问题

查看课程