Spring RestTemplate Base认证

版本

spring 5.1.1以上

RestTemplate restTemplate = new RestTemplate();
restTemplate.getInterceptors().add(new BasicAuthenticationInterceptor(clientId, clientSecret));

posted on 2022-04-11 22:38  路过君  阅读(7)  评论(0)    收藏  举报

导航