原生编译:手动注册 SelectorProvider 及其子类;增加 add-opens 参数

This commit is contained in:
songyinyin
2023-10-24 16:40:46 +08:00
parent 2716addc77
commit f8e93a7eaa
4 changed files with 33 additions and 7 deletions
@@ -49,7 +49,6 @@ public class ProxyConfiguration implements LifecycleBean {
@Bean("tcpServerBossGroup")
public NioEventLoopGroup tcpServerBossGroup(@Inject ProxyConfig proxyConfig) {
ProxyConfig.Server server = proxyConfig.getServer();
System.out.println("==> server:" + server);
ProxyConfig.Tcp tcp = server.getTcp();
return new NioEventLoopGroup(tcp.getBossThreadCount());
}