实践Reactor Netty Posted on 2020-03-04 | In Java | Visitors reactor-netty HttpServer 12345HttpServer.create() .host("0.0.0.0") .handle((req, res) -> res.sendString(Flux.just("hello")) .bind() .block(); TcpServer TcpServerRunOn 12345678910static void configure(ServerBootstrap b, boolean preferNative, LoopResources resources) { EventLoopGroup selectorGroup = resources.onServerSelect(preferNative); EventLoopGroup elg = resources.onServer(preferNative); b.group(selectorGroup, elg) .channel(resources.onServerChannel(elg)); } 参考