apiVersion: apps/v1 #版本号kind: Deployment #资源类型,有Pod|Deployment|Job|Ingress|Service。K8s一般不直接创建Pod,而是通过控制器和模版配置来管理和调度 #我们用Deployment控制器,...
public final class ThreadExecutor { public static final ExecutorService EXECUTOR_SERVICE = new ThreadPoolExecutor(10, 100, 3, TimeUnit.M...
@Slf4j@Component@ChannelHandler.Sharablepublic class NettyWsHandler extends SimpleChannelInboundHandler<TextWebSocketFrame> { private static ...
添加:AttributeKey<String> key = AttributeKey.valueOf("sn");ctx.channel().attr(key).set(deviceSn);获取:AttributeKey<String> key = Att...
@Component@Slf4jpublic class ServerConfig implements ApplicationListener<WebServerInitializedEvent> { private int serverPort; public int g...