netty handler中注入service为空
注入方式:
@Slf4j
@Component
public class BootNettyChannelInboundHandlerAdapter extends ChannelInboundHandlerAdapter {
public static BootNettyChannelInboundHandlerAdapter
bootNettyChannelInboundHandlerAdapter;
//1.正常注入[记得主类也需要使用@Component注解]
@A
原创
2021-02-26 16:45:22 ·
905 阅读 ·
2 评论