@ ConditionalOnMissingBean ( GrpcChannelFactory . class ) @ ConditionalOnClass ( name = { "io.netty.channel.Channel" , "io.grpc.netty.NettyChannelBuilder" } ) @ Bean public GrpcChannelFactory nettyGrpcChannelFactory ( final GrpcChannelsProperties properties , final NameResolver . Factory nameResolverFactory , final GlobalClientInterceptorRegistry globalClientInterceptorRegistry , final List < GrpcChannelConfigurer > channelConfigurers ) { final NettyChannelFactory channelFactory = new NettyChannelFactory ( properties , nameResolverFactory , globalClientInterceptorRegistry , channelConfigurers ) ; final InProcessChannelFactory inProcessChannelFactory = new InProcessChannelFactory ( properties , globalClientInterceptorRegistry , channelConfigurers ) ; return new InProcessOrAlternativeChannelFactory ( properties , inProcessChannelFactory , channelFactory ) ; }
Then try the normal netty channel factory