Skip to content

Instantly share code, notes, and snippets.

@A-pZ
Created August 6, 2023 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save A-pZ/487752bbfc421f061edc91137d962a43 to your computer and use it in GitHub Desktop.
Save A-pZ/487752bbfc421f061edc91137d962a43 to your computer and use it in GitHub Desktop.
Salesforce接続用WebClientの設定
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