Commit 8e4794fb authored by zengtianlai3's avatar zengtianlai3

2.3.7 代码质量:日志记录:使用系统输出流

parent 758ea739
...@@ -2,13 +2,15 @@ package iot.sixiang.license.net; ...@@ -2,13 +2,15 @@ package iot.sixiang.license.net;
import io.netty.channel.ChannelInitializer; import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.SocketChannel;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class BaseChannelInitializer extends ChannelInitializer<SocketChannel> { public class BaseChannelInitializer extends ChannelInitializer<SocketChannel> {
@Override @Override
protected void initChannel(SocketChannel ch) throws Exception { protected void initChannel(SocketChannel ch) throws Exception {
// TODO Auto-generated method stub // TODO Auto-generated method stub
System.out.println("重写了initChannel方法"); log.info("重写了initChannel方法");
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment