问题描述
@HystrixCommand(commandKey = "MyHystrixCommand",fallbackMethod = "myHystrixFallback",threadPoolKey = "ThreadPoolKey")
public ResponseEntity<String> getServiceCallResponse(String serviceUrl,httpentity<?> entity) {
ResponseEntity<String> resp = null;
try {
resp = restTemplate.exchange(serviceUrl,HttpMethod.POST,entity,String.class)
.getBody();
}
catch(Exception e) {
handleExceptionForHystrix("getServiceCallResponse",e);
}
return resp;
}
设置resp表示不匹配时出错。无法理解为什么会这样。可以选择什么。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)