# netty-demo-open **Repository Path**: zhang_qing_tao/netty-demo-openn ## Basic Information - **Project Name**: netty-demo-open - **Description**: 开源 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2023-12-11 - **Last Updated**: 2023-12-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # netty-demo 内容为:黑马程序员netty教程讲义+个人优化后的聊天室代码 源视频:https://www.bilibili.com/video/BV1py4y1E7oA 基于netty+mybatis-plus(没用spring,之前用了然后给我人整麻了,想用可以自己尝试尝试) 基于原来的项目分成server(服务端)、client(客户端)、common(公共部分)三个模块 **common**下的application.properties为client和server的公共配置(连接端口和序列化算法选择),使用common包中CommonConfig来获取 **server**下的application.properties为服务端的jdbc配置(url、driver、用户名、密码)和mapper包位置配置,使用server包中JdbcConfig来获取 由于没用spring,数据库操作使用的是mybatis的SqlSession操作,在server.utils中用SqlSessionUtil封装了获取和关闭的方法,Jdbc配置也是在这里用的 需要的sql文件在这里有 然后**client**下的信息有了对应的处理 其他的就和源视频讲的差不多了