Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Bean
- public OAuth2AccessTokenResponseClient<OAuth2ClientCredentialsGrantRequest> accessTokenResponseClient() {
- Map<String,String> additionalParams = additionalParams();
- if(additionalParams.isEmpty()){
- System.out.println("""
- ==============================
- EMPTY
- =============================
- """ + Thread.currentThread().getName());
- }else {
- System.out.println("""
- ==============================
- WITH PARAMS
- =============================
- """ + Thread.currentThread().getName());
- }
- DefaultClientCredentialsTokenResponseClient tokenResponseClient = new DefaultClientCredentialsTokenResponseClient();
- tokenResponseClient.setRequestEntityConverter(new CustomRequestEntityConverter(additionalParams));
- return tokenResponseClient;
- }
- ============================= CONSOLE LOGS =================================================================
- ==============================
- WITH PARAMS
- =============================
- main
- 2023-10-09 07:28:06.522 WARN 13848 --- [ main] JpaBaseConfiguration$JpaWebConfiguration : spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning
- ==============================
- EMPTY
- =============================
- main
Advertisement
Add Comment
Please, Sign In to add comment