设置Authorization
来源:3-7 食客服务登录业务完善
慕村8783670
2021-06-08
// 设置 Authorization
restTemplate.getInterceptors().add(new BasicAuthenticationInterceptor(oAuth2ClientConfiguration.getClientId(),
oAuth2ClientConfiguration.getSecret()));
老师,这一段是什么意思?为什么在这里设置Authorization?设置了为什么没有接收数据?为什么后面没有作为参数去使用?
写回答
1回答
-
InCowboy
2021-06-29
这是模拟http请求,设置Authorization参数用的,就像postman里面设置一样
012021-08-24
相似问题
