|
|
@ -53,10 +53,13 @@ public class PolarisRestTemplateRegisterAutoConfiguration implements Application
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void initRestTemplate(String beanName, Object bean) {
|
|
|
|
private void initRestTemplate(String beanName, Object bean) {
|
|
|
|
|
|
|
|
if (bean instanceof RestTemplate) {
|
|
|
|
RestTemplate restTemplate = (RestTemplate) bean;
|
|
|
|
RestTemplate restTemplate = (RestTemplate) bean;
|
|
|
|
restTemplate.setErrorHandler(polarisRestTemplateResponseErrorHandler);
|
|
|
|
restTemplate.setErrorHandler(polarisRestTemplateResponseErrorHandler);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
|
|
|
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
|
|
|
|
this.applicationContext = applicationContext;
|
|
|
|
this.applicationContext = applicationContext;
|
|
|
|