mysql 瑙﹀彂鍣ㄥ疄鐜扮骇鑱斿垹闄ゆ湁澶栭敭鐨勫寮犺〃

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 瑙﹀彂鍣ㄥ疄鐜扮骇鑱斿垹闄ゆ湁澶栭敭鐨勫寮犺〃相关的知识,希望对你有一定的参考价值。

鏍囩锛?a href='http://www.mamicode.com/so/1/%e8%a1%a8%e7%bb%93%e6%9e%84' title='琛ㄧ粨鏋?>琛ㄧ粨鏋?/a>   --   delete   hibernate   records   http   using   servlet   base   

2019-10-12 10:17:44

1銆佹暟鎹紝寤鸿〃鏃舵湁鍙兘浼氭姤閿欙紝鍙渶瑕佹妸鍓嶄笁琛屾敞閲婂垹鎺夊氨琛?/p>

-- ----------------------------
-- Table structure for tb_grade
-- ----------------------------
DROP TABLE IF EXISTS `tb_grade`;
CREATE TABLE `tb_grade` (
  `grade_id` int(11) NOT NULL AUTO_INCREMENT,
  `grade_name` varchar(50) DEFAULT NULL,
  PRIMARY KEY (`grade_id`),
  UNIQUE KEY `grade_check` (`grade_name`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_grade
-- ----------------------------
INSERT INTO `tb_grade` VALUES (鈥?/span>1鈥?/span>, 鈥?/span>涓€骞寸骇鈥?/span>);
INSERT INTO `tb_grade` VALUES (鈥?/span>2鈥?/span>, 鈥?/span>浜屽勾绾?/span>鈥?/span>);
INSERT INTO `tb_grade` VALUES (鈥?/span>3鈥?/span>, 鈥?/span>涓夊勾绾?/span>鈥?/span>);
INSERT INTO `tb_grade` VALUES (鈥?/span>4鈥?/span>, 鈥?/span>鍥涘勾绾?/span>鈥?/span>);
INSERT INTO `tb_grade` VALUES (鈥?/span>5鈥?/span>, 鈥?/span>浜斿勾绾?/span>鈥?/span>);

-- ----------------------------
-- Table structure for tb_subject
-- ----------------------------
DROP TABLE IF EXISTS `tb_subject`;
CREATE TABLE `tb_subject` (
  `subject_id` int(11) NOT NULL AUTO_INCREMENT,
  `subject_name` varchar(20) DEFAULT NULL,
  `class_hour` int(3) DEFAULT NULL,
  `grade_id` int(11) DEFAULT NULL,
  PRIMARY KEY (`subject_id`),
  KEY `grade_id` (`grade_id`),
  CONSTRAINT `tb_subject_ibfk_1` FOREIGN KEY (`grade_id`) REFERENCES `tb_grade` (`grade_id`)
) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_subject
-- ----------------------------
INSERT INTO `tb_subject` VALUES (鈥?/span>1鈥?/span>, 鈥?/span>java鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>1鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>2鈥?/span>, 鈥?/span>html鈥?/span>, 鈥?/span>40鈥?/span>, 鈥?/span>1鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>3鈥?/span>, 鈥?/span>javascript鈥?/span>, 鈥?/span>30鈥?/span>, 鈥?/span>1鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>4鈥?/span>, 鈥?/span>database鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>2鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>5鈥?/span>, 鈥?/span>java oop鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>2鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>6鈥?/span>, 鈥?/span>servlet鈥?/span>, 鈥?/span>40鈥?/span>, 鈥?/span>2鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>7鈥?/span>, 鈥?/span>jsp鈥?/span>, 鈥?/span>40鈥?/span>, 鈥?/span>2鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>8鈥?/span>, 鈥?/span>struts2鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>3鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>9鈥?/span>, 鈥?/span>hibernate鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>3鈥?/span>);
INSERT INTO `tb_subject` VALUES (鈥?/span>10鈥?/span>, 鈥?/span>spring鈥?/span>, 鈥?/span>60鈥?/span>, 鈥?/span>3鈥?/span>);

-- ----------------------------
-- Table structure for tb_student
-- ----------------------------
DROP TABLE IF EXISTS `tb_student`;
CREATE TABLE `tb_student` (
  `student_no` varchar(20) NOT NULL COMMENT 鈥?/span>瀛﹀彿鈥?/span>,
  `login_pwd` varchar(20) NOT NULL DEFAULT 鈥?/span>123456鈥?/span> COMMENT 鈥?/span>瀵嗙爜鈥?/span>,
  `student_name` varchar(20) NOT NULL COMMENT 鈥?/span>濮撳悕鈥?/span>,
  `sex` enum(鈥?/span>濂?/span>鈥?/span>,鈥?/span>鐢?/span>鈥?/span>) DEFAULT 鈥?/span>鐢?/span>鈥?/span> COMMENT 鈥?/span>鎬у埆鈥?/span>,
  `grade_id` int(11) DEFAULT NULL COMMENT 鈥?/span>骞寸骇  - 澶栭敭鈥?/span>,
  `phone` varchar(20) DEFAULT NULL COMMENT 鈥?/span>鑱旂郴鐢佃瘽鈥?/span>,
  `address` varchar(100) DEFAULT 鈥?/span>瀛︾敓瀹胯垗鈥?/span> COMMENT 鈥?/span>鐜颁綇鍧€鈥?/span>,
  `birthday` date DEFAULT NULL COMMENT 鈥?/span>鍑虹敓鏃ユ湡鈥?/span>,
  `email` varchar(50) DEFAULT NULL COMMENT 鈥?/span>鐢靛瓙閭欢鈥?/span>,
  PRIMARY KEY (`student_no`),
  KEY `grade_id` (`grade_id`),
  CONSTRAINT `tb_student_ibfk_1` FOREIGN KEY (`grade_id`) REFERENCES `tb_grade` (`grade_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_student
-- ----------------------------
INSERT INTO `tb_student` VALUES (鈥?/span>s01鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>瀹嬫睙鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888811111鈥?/span>, 鈥?/span>瀛︾敓瀹胯垗鈥?/span>, 鈥?/span>1985-10-10鈥?/span>, 鈥?/span>13888811111@qq.com鈥?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s02鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鍗繆涔?/span>鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888822222鈥?/span>, 鈥?/span>鏁欏満瑗胯矾8鍙?/span>鈥?/span>, 鈥?/span>1987-08-08鈥?/span>, 鈥?/span>13888822222@qq.com鈥?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s03鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鍚寸敤鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>13888833333鈥?/span>, 鈥?/span>鏁欏満瑗胯矾8鍙?/span>鈥?/span>, 鈥?/span>1991-06-06鈥?/span>, 鈥?/span>13888833333@qq.com鈥?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s04鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>瀛欎簩濞?/span>鈥?/span>, 鈥?/span>濂?/span>鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>13888844444鈥?/span>, 鈥?/span>鏁欏満瑗胯矾16鍙?/span>鈥?/span>, 鈥?/span>1983-05-05鈥?/span>, 鈥?/span>13888844444@qq.com鈥?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s05鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鏉庨€?/span>鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888855555鈥?/span>, 鈥?/span>瀛︾敓瀹胯垗鈥?/span>, 鈥?/span>1992-01-01鈥?/span>, 鈥?/span>13888855555@qq.com鈥?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s06鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>椤惧ぇ瀚?/span>鈥?/span>, 鈥?/span>濂?/span>鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>13888866666鈥?/span>, 鈥?/span>鏁欏満瑗胯矾16鍙?/span>鈥?/span>, 鈥?/span>1990-02-02鈥?/span>, 鈥?/span>13888866666@qq.com鈥?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s07鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鏌磋繘鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>13888877777鈥?/span>, 鈥?/span>瀛︾敓瀹胯垗鈥?/span>, 鈥?/span>1991-03-03鈥?/span>, null);
INSERT INTO `tb_student` VALUES (鈥?/span>s08鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鏋楀啿鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>13888888888鈥?/span>, 鈥?/span>鏁欏満瑗胯矾8鍙?/span>鈥?/span>, 鈥?/span>1986-04-04鈥?/span>, null);
INSERT INTO `tb_student` VALUES (鈥?/span>s09鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>椴佹櫤娣?/span>鈥?/span>, 鈥?/span>鐢?/span>鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>13888899999鈥?/span>, 鈥?/span>鏁欏満瑗胯矾8鍙?/span>鈥?/span>, 鈥?/span>1991-05-05鈥?/span>, 鈥樷€?/span>);
INSERT INTO `tb_student` VALUES (鈥?/span>s10鈥?/span>, 鈥?/span>123456鈥?/span>, 鈥?/span>鎵堜笁濞?/span>鈥?/span>, 鈥?/span>濂?/span>鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>13888800000鈥?/span>, 鈥?/span>瀛︾敓瀹胯垗鈥?/span>, 鈥?/span>1983-06-06鈥?/span>, 鈥樷€?/span>);

-- ----------------------------
-- Table structure for tb_score
-- ----------------------------
DROP TABLE IF EXISTS `tb_score`;
CREATE TABLE `tb_score` (
  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 鈥?/span>鎴愮哗缂栧彿鈥?/span>,
  `student_no` varchar(255) NOT NULL COMMENT 鈥?/span>瀛﹀彿 - 澶栭敭鈥?/span>,
  `subject_id` int(11) DEFAULT NULL COMMENT 鈥?/span>鎵€鑰冪鐩?/span>鈥?/span>,
  `student_score` float(5,2) DEFAULT 鈥?/span>0.00鈥?/span> COMMENT 鈥?/span>鍒嗘暟鈥?/span>,
  `exam_date` date DEFAULT NULL COMMENT 鈥?/span>鑰冭瘯鏃ユ湡鈥?/span>,
  PRIMARY KEY (`id`),
  KEY `student_no` (`student_no`),
  KEY `subject_id` (`subject_id`),
  CONSTRAINT `tb_score_ibfk_1` FOREIGN KEY (`student_no`) REFERENCES `tb_student` (`student_no`),
  CONSTRAINT `tb_score_ibfk_2` FOREIGN KEY (`subject_id`) REFERENCES `tb_subject` (`subject_id`)
) ENGINE=InnoDB AUTO_INCREMENT=31 DEFAULT CHARSET=utf8;

-- ----------------------------
-- Records of tb_score
-- ----------------------------
INSERT INTO `tb_score` VALUES (鈥?/span>1鈥?/span>, 鈥?/span>s01鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>90.50鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>2鈥?/span>, 鈥?/span>s02鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>85.00鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>3鈥?/span>, 鈥?/span>s03鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>69.50鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>4鈥?/span>, 鈥?/span>s04鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>85.50鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>5鈥?/span>, 鈥?/span>s05鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>45.50鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>6鈥?/span>, 鈥?/span>s06鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>95.50鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>7鈥?/span>, 鈥?/span>s07鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>76.50鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>8鈥?/span>, 鈥?/span>s08鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>88.00鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>9鈥?/span>, 鈥?/span>s09鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>70.00鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>10鈥?/span>, 鈥?/span>s10鈥?/span>, 鈥?/span>1鈥?/span>, 鈥?/span>55.00鈥?/span>, 鈥?/span>2016-11-05鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>11鈥?/span>, 鈥?/span>s01鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>80.50鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>12鈥?/span>, 鈥?/span>s02鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>70.00鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>13鈥?/span>, 鈥?/span>s03鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>68.50鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>14鈥?/span>, 鈥?/span>s04鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>82.50鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>15鈥?/span>, 鈥?/span>s05鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>43.50鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>16鈥?/span>, 鈥?/span>s06鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>90.50鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>17鈥?/span>, 鈥?/span>s07鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>70.50鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>18鈥?/span>, 鈥?/span>s08鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>80.00鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>19鈥?/span>, 鈥?/span>s09鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>80.00鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>20鈥?/span>, 鈥?/span>s10鈥?/span>, 鈥?/span>2鈥?/span>, 鈥?/span>56.00鈥?/span>, 鈥?/span>2016-11-07鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>21鈥?/span>, 鈥?/span>s01鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>84.50鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>22鈥?/span>, 鈥?/span>s02鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>73.00鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>23鈥?/span>, 鈥?/span>s03鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>69.50鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>24鈥?/span>, 鈥?/span>s04鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>86.50鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>25鈥?/span>, 鈥?/span>s05鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>44.50鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>26鈥?/span>, 鈥?/span>s06鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>80.50鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>27鈥?/span>, 鈥?/span>s07鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>75.50鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>28鈥?/span>, 鈥?/span>s08鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>87.00鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>29鈥?/span>, 鈥?/span>s09鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>85.00鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);
INSERT INTO `tb_score` VALUES (鈥?/span>30鈥?/span>, 鈥?/span>s10鈥?/span>, 鈥?/span>3鈥?/span>, 鈥?/span>66.00鈥?/span>, 鈥?/span>2016-11-09鈥?/span>);

 

2銆佽〃缁撴瀯

鎶€鏈浘鐗? src=

3銆侀渶姹傦細閽堝鏁版嵁搴撲腑鐨?寮犳暟鎹〃(tb_grade銆乼b_subject銆乼b_student銆乼b_score)

鍦ㄩ渶瑕佺殑鏁版嵁琛ㄤ笂鍒涘缓瑙﹀彂鍣紝杈惧埌姣忓垹闄や竴涓暟鎹〃鐨勮褰曟椂閮借兘椤洪『鍒╂墽琛?绾ц仈鍒犻櫎)銆?/em>

4銆佸叿浣撳疄鐜帮細

-- 涓簍b_grade鍒涘缓瑙﹀彂鍣?/span>
DROP TRIGGER IF EXISTS trig_grade;
delimiter //
CREATE TRIGGER trig_grade BEFORE delete on tb_grade for each row
BEGIN
        DELETE FROM tb_student WHERE  grade_id = old.grade_id;
        DELETE FROM tb_subject WHERE grade_id = old.grade_id;
END //
delimiter ;

-- 涓簍b_student鍒涘缓瑙﹀彂鍣?/span>
DROP TRIGGER IF EXISTS trig_student;
delimiter //
CREATE TRIGGER trig_student BEFORE delete on tb_student for each row
BEGIN
        DELETE FROM tb_score WHERE  student_no = old.student_no;
END //
delimiter ;

-- 涓簍b_subject鍒涘缓瑙﹀彂鍣?/span>
DROP TRIGGER IF EXISTS trig_subject;
delimiter //
CREATE TRIGGER trig_subject BEFORE delete on tb_subject for each row
BEGIN
        DELETE FROM tb_score WHERE  subject_id = old.subject_id;
END //
delimiter ;

-- 鏌ョ湅姝ゆ暟鎹簱涓殑瑙﹀彂鍣?/span>
SHOW TRIGGERS;

-- 娴嬭瘯鍒犻櫎鏁版嵁鏄惁鑳芥垚鍔?/span>
DELETE FROM tb_student WHERE student_no = "S01";
DELETE FROM tb_grade WHERE grade_id = 1;
DELETE FROM tb_subject WHERE subject_id = 3;
DELETE FROM tb_score WHERE id = 9;

-- 鏈€鍚庡彲浠ユ煡璇㈣〃鐪嬬湅鏈夋病鏈夎椤哄埄鍒犻櫎

 

5銆乼b_score琛ㄦ槸娌℃湁鍏朵粬琛ㄥ皢澶栭敭鎸囧悜瀹冪殑涓婚敭

鎯宠鍒犻櫎浠庤〃鐨勬暟鎹紝闇€瑕佸厛鍒犻櫎涓昏〃鐨勬暟鎹?/p>

 

以上是关于mysql 瑙﹀彂鍣ㄥ疄鐜扮骇鑱斿垹闄ゆ湁澶栭敭鐨勫寮犺〃的主要内容,如果未能解决你的问题,请参考以下文章

netty 瑙e喅TCP绮樺寘涓庢媶鍖呴棶棰?涓?

Zotero锝滃鐢≒ubMed鎼滅储寮曟搸锛屾煡鎵剧浉鍏虫枃鐚紒