✨ Introducing new features. #2263 [common-test]基于pig优化单元测试
This commit is contained in:
1 parent
476346379e
commit
648fb81d36
1 file changed
+3
-4
+3
-4
@@ -80,10 +80,9 @@ public class WithMockSecurityContextFactory implements WithSecurityContextFactor
|
||||
RestTemplate restTemplate = SpringContextHolder.getBean(RestTemplate.class);
|
||||
|
||||
// 优先获取配置文件URI 配置
|
||||
String url = StrUtil.isBlank(clientProperties.getAccessTokenUri()) ? TOKEN_URL : clientProperties
|
||||
.getAccessTokenUri();
|
||||
String result = restTemplate
|
||||
.exchange(url, HttpMethod.POST, requestEntity, String.class).getBody();
|
||||
String url = StrUtil.isBlank(clientProperties.getAccessTokenUri()) ? TOKEN_URL
|
||||
: clientProperties.getAccessTokenUri();
|
||||
String result = restTemplate.exchange(url, HttpMethod.POST, requestEntity, String.class).getBody();
|
||||
return JSONUtil.parseObj(result).getStr("access_token");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user