mdoTomofumi Chiba
1/16/2025, 11:28:48 PM

Spring: WebClient で SSL/TLS エラーを無視する

var sslContext = SslContextBuilder
        .forClient()
        .trustManager(InsecureTrustManagerFactory.INSTANCE)
        .build();

var httpClient = HttpClient.create().secure(t -> t.sslContext(sslContext));
var webClient = WebClient.builder().clientConnector(new ReactorClientHttpConnector(httpClient)).build();
TweetBlueskyLike