我在几天前发布了这个错误,并且有几个回复。有人建议当响应是transfer-Encoding类型chunked时出现错误。我该怎么做才能告诉服务器不要块或修复我的结束,以便ReadTemplate正常工作。而且,顺便说一下,我从WeatherUndergound中读取了REST服务,如果知道的话有用。
Could not extract response: no suitable HttpMessageConverter found for
response type [net.cheshiresgrin.currentConditions.Display] and
content type [application/json;charset=UTF-8]
答案 0 :(得分:0)
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${com.fasterxml.jackson.version}</version>
</dependency>
并在您的pom文件中添加maven依赖项
class Base {
public:
virtual void hi() {
cout << "hi" << endl;
}
};
class Derived : public Base {
public:
void hi() override {
cout << "derived hi" << endl;
}
};