关于OAuth2RestTemplate.setRequestFactory()设置无效

时间:2019-06-12 04:24:41

标签: java spring-security-oauth2 resttemplate

OAuth2RestTemplate keycloakTemplate = new OAuth2RestTemplate(keycloak(), oauth2ClientContext);

keycloakTemplate.setRequestFactory(new OkHttp3ClientHttpRequestFactory(okHttpClient()));

我找到了

ClientHttpRequest request = createRequest(url,method) // in the RestTemplate;

我发现结果是SimpleBufferingClientHttpRequest不是OkHttp3ClientHttpRequestFactory

0 个答案:

没有答案