1.Log4j整合到Netty 1>.加入log4j依赖 <!--log4j相关依赖--> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId>