Commit 137aa472 authored by 陈健's avatar 陈健

更换restTemplate

parent aa280e96
......@@ -33,11 +33,12 @@ public class OAuth2Client {
@Resource
private OAuth2ClientContext oAuth2ClientContext;
@Resource
private RestTemplate restTemplate;
private RestTemplate restTemplateSSL;
@Bean
public OpenIdDiscovery getOpenIdDiscovery() {
return restTemplate.getForObject(applicationProperties.getIssuer() + DISCOVERY_PATH, OpenIdDiscovery.class);
OpenIdDiscovery opendIdObj = restTemplateSSL.getForObject(applicationProperties.getIssuer() + DISCOVERY_PATH, OpenIdDiscovery.class);
return opendIdObj;
}
@Bean
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment