API 地址:http://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/client/RestTemplate.html 客户端 spring xml 转换器配置: <bean id="ky.requestFactory" class="org.springframework.http.cl
创建restTemplate的Bean对象 @Bean@LoadBalancedpublic RestTemplate restTemplate() {return new RestTemplate();} 异常: Request URI does not contain a valid hostname 解决方法: 去除目标应用的spring.application.name值