Created
August 6, 2023 07:47
-
-
Save A-pZ/487752bbfc421f061edc91137d962a43 to your computer and use it in GitHub Desktop.
Salesforce接続用WebClientの設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.github.apz.salesforcesample.config; | |
import lombok.AllArgsConstructor; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.web.reactive.function.client.WebClient; | |
@Configuration | |
@AllArgsConstructor | |
public class SalesforceConfig { | |
SalesforceProperties salesforceProperties; | |
@Bean | |
WebClient salesforceAuthWebClient() { | |
WebClient webClient = WebClient.builder() | |
.baseUrl(salesforceProperties.getUrl()) | |
.build(); | |
return webClient; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment