nettyspring-cloud-gateway

I had a netty dns problem and I solved it but I don't know why it solved it


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);
    }

Solution

  • https://github.com/reactor/reactor-netty/issues/1431 It is probably related to this issue. I needed to do the similar walkaround too.