While using spring cloud gateway, there was an error where netty could not check DNS. however, I found the following code on the Internet, added it, and it was solved. I feel dizzy.
@Bean
public HttpClient httpClient() {
return HttpClient.create().resolver(DefaultAddressResolverGroup.INSTANCE);
}
https://github.com/reactor/reactor-netty/issues/1431 It is probably related to this issue. I needed to do the similar walkaround too.