看起来您更改了请求的内容类型,但是“ application /
json”必须在响应头中,并且您仍然具有相同的异常这一事实表明您在响应中使用了错误的媒体类型“ text /
json”,在HTTP中没有这样的媒体类型。只看
restTemplate.exchange("http://server.com",HttpMethod.GET,entity, UserDTO[].class);那里应该有问题的实现。
欢迎分享,转载请注明来源:内存溢出
看起来您更改了请求的内容类型,但是“ application /
json”必须在响应头中,并且您仍然具有相同的异常这一事实表明您在响应中使用了错误的媒体类型“ text /
json”,在HTTP中没有这样的媒体类型。只看
restTemplate.exchange("http://server.com",HttpMethod.GET,entity, UserDTO[].class);那里应该有问题的实现。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)