原文:.w.s.m.s.DefaultHandlerExceptionResolver : Resolved [org.springframework.web.HttpMediaTypeNotAcceptableException: Could not find acceptable representation]

当想要返回的是json数据,produces写的 text plain ,会报错 Whitelabel Error Page This application has no explicit mapping for error, so you are seeing this as a fallback. Thu Nov : : CST There was an unexpected error t ...

2019-11-21 15:04 0 2233 推荐指数:

查看详情

Could not find acceptable representation

引起的原因: 由于设置了@ResponseBody,要把对象转换成json格式,缺少转换依赖的jar包,故此错。 解决办法: 加入依赖的jar,jackson-core ...

Tue Aug 05 06:11:00 CST 2014 1 22116
Could not find acceptable representation

报了一个这个异常: 通过这篇文章找到了“favorPathExtension”关键字, Spring Boot完美解决(406)Could not find acceptable representation原因及解决方法 进而找到了这篇文章中的方法,解决了问题 SpringMVC ...

Tue Jan 23 04:31:00 CST 2018 0 1293
Could not find acceptable representation报错

网上其他人说: 方法名跟页面、js重合了 我这边发现问题在于 后台数据返回给前端两次 如果不是因为后台debug没结束,然后前端已经拿到数据,很难发现 ...

Tue Sep 29 00:37:00 CST 2020 0 660
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM