{"id":2941,"date":"2023-07-14T15:33:16","date_gmt":"2023-07-14T07:33:16","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2941"},"modified":"2023-07-14T15:33:19","modified_gmt":"2023-07-14T07:33:19","slug":"mybatis%e7%b3%bb%e5%88%97%e7%ac%ac12%e7%af%87%ef%bc%9a%e6%8e%8c%e6%8f%a1%e7%bc%93%e5%ad%98%e4%b8%ba%e6%9f%a5%e8%af%a2%e6%8f%90%e9%80%9f","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/mybatis%e7%b3%bb%e5%88%97%e7%ac%ac12%e7%af%87%ef%bc%9a%e6%8e%8c%e6%8f%a1%e7%bc%93%e5%ad%98%e4%b8%ba%e6%9f%a5%e8%af%a2%e6%8f%90%e9%80%9f\/","title":{"rendered":"Mybatis\u7cfb\u5217\u7b2c12\u7bc7\uff1a\u638c\u63e1\u7f13\u5b58\u4e3a\u67e5\u8be2\u63d0\u901f!"},"content":{"rendered":"<section style=\"\">\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">Mybatis\u7cfb\u5217\u76ee\u6807\uff1a\u4ece\u5165\u95e8\u5f00\u59cb\u5f00\u59cb\u638c\u63e1\u4e00\u4e2a\u9ad8\u7ea7\u5f00\u53d1\u6240\u9700\u8981\u7684Mybatis\u6280\u80fd\u3002<\/strong><\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u8fd9\u662fmybatis\u7cfb\u5217\u7b2c12\u7bc7\uff0c\u6e90\u7801\u4f4d\u4e8e\u6587\u7ae0\u5c3e\u90e8\uff01<\/strong><\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4ec0\u4e48\u662f\u7f13\u5b58\uff1f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u7f13\u5b58\u5c31\u662f\u5b58\u50a8\u6570\u636e\u7684\u4e00\u4e2a\u5730\u65b9\uff08\u79f0\u4f5c\uff1aCache\uff09\uff0c\u5f53\u7a0b\u5e8f\u8981\u8bfb\u53d6\u6570\u636e\u65f6\uff0c\u4f1a\u9996\u5148\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\uff0c\u6709\u5219\u76f4\u63a5\u8fd4\u56de\uff0c\u5426\u5219\u4ece\u5176\u4ed6\u5b58\u50a8\u8bbe\u5907\u4e2d\u83b7\u53d6\uff0c<strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u7f13\u5b58\u6700\u91cd\u8981\u7684\u4e00\u70b9\u5c31\u662f\u4ece\u5176\u5185\u90e8\u83b7\u53d6\u6570\u636e\u7684\u901f\u5ea6\u662f\u975e\u5e38\u5feb\u7684\uff0c\u901a\u8fc7\u7f13\u5b58\u53ef\u4ee5\u52a0\u5feb\u6570\u636e\u7684\u8bbf\u95ee\u901f\u5ea6\u3002\u6bd4\u5982\u6211\u4eec\u4ecedb\u4e2d\u83b7\u53d6\u6570\u636e\uff0c\u4e2d\u95f4\u9700\u8981\u7ecf\u8fc7\u7f51\u7edc\u4f20\u8f93\u8017\u65f6\uff0cdb server\u4ece\u78c1\u76d8\u8bfb\u53d6\u6570\u636e\u8017\u65f6\u7b49\uff0c\u5982\u679c\u8fd9\u4e9b\u6570\u636e\u76f4\u63a5\u653e\u5728jvm\u5bf9\u5e94\u7684\u5185\u5b58\u4e2d\uff0c\u8bbf\u95ee\u662f\u4e0d\u662f\u4f1a\u5feb\u5f88\u591a\u3002<\/strong><\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">mybatis\u4e2d\u7684\u7f13\u5b58<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u901a\u5e38\u60c5\u51b5\u4e0bmybatis\u4f1a\u8bbf\u95ee\u6570\u636e\u5e93\u83b7\u53d6\u6570\u636e\uff0c\u4e2d\u95f4\u6d89\u53ca\u5230\u7f51\u7edc\u901a\u4fe1\uff0c\u6570\u636e\u5e93\u4ece\u78c1\u76d8\u4e2d\u8bfb\u53d6\u6570\u636e\uff0c\u7136\u540e\u5c06\u6570\u636e\u8fd4\u56de\u7ed9mybatis\uff0c\u603b\u7684\u6765\u8bf4\u8017\u65f6\u8fd8\u662f\u633a\u957f\u7684\uff0cmybatis\u4e3a\u4e86\u52a0\u5feb\u6570\u636e\u67e5\u8be2\u7684\u901f\u5ea6\uff0c\u5728\u5176\u5185\u90e8\u5f15\u5165\u4e86\u7f13\u5b58\u6765\u52a0\u5feb\u6570\u636e\u7684\u67e5\u8be2\u901f\u5ea6\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">mybatis\u4e2d\u5206\u4e3a\u4e00\u7ea7\u7f13\u5b58\u548c\u4e8c\u7ea7\u7f13\u5b58\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e00\u7ea7\u7f13\u5b58\u662fSqlSession\u7ea7\u522b\u7684\u7f13\u5b58\uff0c\u5728\u64cd\u4f5c\u6570\u636e\u5e93\u65f6\u9700\u8981\u6784\u9020 sqlSession\u5bf9\u8c61\uff0c\u5728\u5bf9\u8c61\u4e2d\u6709\u4e00\u4e2a\u6570\u636e\u7ed3\u6784\uff08HashMap\uff09\u7528\u4e8e\u5b58\u50a8\u7f13\u5b58\u6570\u636e\uff0c\u4e0d\u540c\u7684sqlSession\u4e4b\u95f4\u7684\u7f13\u5b58\u6570\u636e\u533a\u57df\uff08HashMap\uff09\u662f\u4e92\u76f8\u4e0d\u5f71\u54cd\u7684\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e8c\u7ea7\u7f13\u5b58\u662fmapper\u7ea7\u522b\u7684\u7f13\u5b58\uff0c\u591a\u4e2aSqlSession\u53bb\u64cd\u4f5c\u540c\u4e00\u4e2aMapper\u7684sql\u8bed\u53e5\uff0c\u591a\u4e2aSqlSession\u53ef\u4ee5\u5171\u7528\u4e8c\u7ea7\u7f13\u5b58\uff0c\u4e8c\u7ea7\u7f13\u5b58\u662f\u8de8SqlSession\u7684\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u8bf4\u4e00\u4e0b\u4e00\u7ea7\u7f13\u5b58\u548c\u4e8c\u7ea7\u7f13\u5b58\u7684\u5404\u79cd\u7528\u6cd5\u548c\u6ce8\u610f\u70b9\u3002<\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4e00\u7ea7\u7f13\u5b58<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u4e00\u7ea7\u7f13\u5b58\u662fSqlSession\u7ea7\u522b\u7684\u7f13\u5b58\uff0c\u6bcf\u4e2aSqlSession\u90fd\u6709\u81ea\u5df1\u5355\u72ec\u7684\u4e00\u7ea7\u7f13\u5b58\uff0c\u591a\u4e2aSqlSession\u4e4b\u95f4\u7684\u4e00\u7ea7\u7f13\u5b58\u662f\u76f8\u4e92\u9694\u79bb\u7684\uff0c\u4e92\u4e0d\u5f71\u54cd\uff0cmybatis\u4e2d\u4e00\u7ea7\u7f13\u5b58\u662f\u9ed8\u8ba4\u81ea\u52a8\u5f00\u542f\u7684\u3002<\/strong><\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u4e00\u7ea7\u7f13\u5b58\u5de5\u4f5c\u539f\u7406\uff1a\u5728\u540c\u4e00\u4e2aSqlSession\u4e2d\u53bb\u591a\u6b21\u53bb\u6267\u884c\u540c\u6837\u7684\u67e5\u8be2\uff0c\u6bcf\u6b21\u6267\u884c\u7684\u65f6\u5019\u4f1a\u5148\u5230\u4e00\u7ea7\u7f13\u5b58\u4e2d\u67e5\u627e\uff0c\u5982\u679c\u7f13\u5b58\u4e2d\u6709\u5c31\u76f4\u63a5\u8fd4\u56de\uff0c\u5982\u679c\u4e00\u7ea7\u7f13\u5b58\u4e2d\u6ca1\u6709\u76f8\u5173\u6570\u636e\uff0cmybatis\u5c31\u4f1a\u53bbdb\u4e2d\u8fdb\u884c\u67e5\u627e\uff0c\u7136\u540e\u5c06\u67e5\u627e\u5230\u7684\u6570\u636e\u653e\u5165\u4e00\u7ea7\u7f13\u5b58\u4e2d\uff0c\u7b2c\u4e8c\u6b21\u6267\u884c\u540c\u6837\u7684\u67e5\u8be2\u7684\u65f6\u5019\uff0c\u4f1a\u53d1\u73b0\u7f13\u5b58\u4e2d\u5df2\u7ecf\u5b58\u5728\u4e86\uff0c\u4f1a\u76f4\u63a5\u8fd4\u56de\u3002\u4e00\u7ea7\u7f13\u5b58\u7684\u5b58\u50a8\u4ecb\u8d28\u662f\u5185\u5b58\uff0c\u662f\u7528\u4e00\u4e2aHashMap\u6765\u5b58\u50a8\u6570\u636e\u7684\uff0c\u6240\u4ee5\u8bbf\u95ee\u901f\u5ea6\u662f\u975e\u5e38\u5feb\u7684\u3002<\/strong><\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u4e00\u7ea7\u7f13\u5b58\u6848\u4f8b<\/span><\/h4>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6848\u4f8bsql\u811a\u672c<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">DROP<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">DATABASE<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">IF<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">EXISTS<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">`javacode2018`<\/span>;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">CREATE<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">DATABASE<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">`javacode2018`<\/span>;\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">USE<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">`javacode2018`<\/span>;\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">DROP<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">TABLE<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">IF<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">EXISTS<\/span>&nbsp;t_user;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">CREATE<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">TABLE<\/span>&nbsp;t_user(\n&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">int<\/span>&nbsp;AUTO_INCREMENT&nbsp;PRIMARY&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">KEY<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">COMMENT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u7528\u6237id'<\/span>,\n&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">VARCHAR<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">32<\/span>)&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">NOT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">NULL<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">DEFAULT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">''<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">COMMENT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u7528\u6237\u540d'<\/span>,\n&nbsp;&nbsp;age&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">SMALLINT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">NOT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">NULL<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">DEFAULT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">COMMENT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u5e74\u9f84'<\/span>\n)&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">COMMENT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u7528\u6237\u8868'<\/span>;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">INSERT<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">INTO<\/span>&nbsp;t_user&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">VALUES<\/span>&nbsp;(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u8def\u4eba\u7532Java'<\/span>,<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u5f20\u5b66\u53cb'<\/span>,<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">'\u5218\u5fb7\u534e'<\/span>,<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>);\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u4e0b\u9762\u662f\u67e5\u8be2\u7528\u6237\u4fe1\u606f\uff0c\u8fd4\u56de\u4e00\u4e2alist<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList1\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">resultType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"com.javacode2018.chat05.demo9.model.UserModel\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">parameterType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"map\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"id!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;id&nbsp;=&nbsp;#{id}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"name!=null&nbsp;and&nbsp;name.toString()!=''\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;name&nbsp;=&nbsp;#{name}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"age!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;age&nbsp;=&nbsp;#{age}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&gt;<\/span>\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u5bf9\u5e94\u7684mapper\u63a5\u53e3\u65b9\u6cd5<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">List&lt;UserModel&gt;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">getList1<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">(Map&lt;String,&nbsp;Object&gt;&nbsp;paramMap)<\/span><\/span>;\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6d4b\u8bd5\u7528\u4f8b<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level1CacheTest1\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u4e00\u7ea7\u7f13\u5b58\u6d4b\u8bd5\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level1CacheTest1<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e00\u6b21\u67e5\u8be2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e8c\u6b21\u67e5\u8be2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList2&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList2);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1&nbsp;==&nbsp;userModelList2);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u4e0a\u9762\u7684\u4ee3\u7801\u5728\u540c\u4e00\u4e2aSqlSession\u4e2d\u53bb\u6267\u884c\u4e862\u6b21\u83b7\u53d6\u7528\u6237\u5217\u8868\u4fe1\u606f\uff0c2\u6b21\u67e5\u8be2\u7ed3\u679c\u5206\u522b\u653e\u5728<code style=\"font-size: inherit;line-height: inherit;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(248, 35, 117);background: rgb(248, 248, 248);\">userModelList1<\/code>\u548c<code style=\"font-size: inherit;line-height: inherit;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(248, 35, 117);background: rgb(248, 248, 248);\">userModelList2<\/code>\uff0c\u6700\u7ec8\u4ee3\u7801\u4e2d\u4e5f\u4f1a\u5224\u65ad\u8fd9\u4e24\u4e2a\u96c6\u5408\u662f\u5426\u76f8\u7b49\uff0c\u4e0b\u9762\u6211\u4eec\u8fd0\u884c\u4e00\u4e0b\u770b\u770b\u4f1a\u8bbf\u95ee\u51e0\u6b21db\uff1f<\/strong><\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u8fd0\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">01<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">15.312<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">01<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">15.340<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">01<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">15.364<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">01<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">15.364<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">01<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">15.367<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">01<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">15.367<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4ece\u8f93\u51fa\u4e2d\u53ef\u4ee5\u770b\u51fa\u770b\u5230\uff0csql\u53ea\u8f93\u51fa\u4e86\u4e00\u6b21\uff0c\u8bf4\u660e\u7b2c\u4e00\u6b21\u4f1a\u8bbf\u95ee\u6570\u636e\u5e93\uff0c\u7b2c\u4e8c\u6b21\u76f4\u63a5\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\u7684\uff0c\u6700\u540e\u8f93\u51fa\u4e86\u4e00\u4e2a<code style=\"font-size: inherit;line-height: inherit;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(248, 35, 117);background: rgb(248, 248, 248);\">true<\/code>\uff0c\u4e5f\u8bf4\u660e\u4e24\u6b21\u8fd4\u56de\u7ed3\u679c\u662f\u540c\u4e00\u4e2a\u5bf9\u8c61\uff0c\u7b2c\u4e8c\u6b21\u76f4\u63a5\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\u6570\u636e\u7684\uff0c\u52a0\u5feb\u4e86\u67e5\u8be2\u7684\u901f\u5ea6\u3002<\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6e05\u7a7a\u4e00\u7ea7\u7f13\u5b58\u76843\u79cd\u65b9\u5f0f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u540c\u4e00\u4e2aSqlSession\u4e2d\u67e5\u8be2\u540c\u6837\u7684\u6570\u636e\uff0cmybatis\u9ed8\u8ba4\u4f1a\u4ece\u4e00\u7ea7\u7f13\u5b58\u4e2d\u83b7\u53d6\uff0c\u5982\u679c\u7f13\u5b58\u4e2d\u6ca1\u6709\uff0c\u624d\u4f1a\u8bbf\u95eedb\uff0c\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u53bb\u60c5\u51b5\u4e00\u7ea7\u7f13\u5b58\u5462\uff0c\u5f3a\u5236\u8ba9\u67e5\u8be2\u53bb\u8bbf\u95eedb\u5462\uff1f<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u8ba9\u4e00\u7ea7\u7f13\u5b58\u5931\u6548\u67093\u79cd\u65b9\u5f0f\uff1a<\/strong><\/p>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">SqlSession\u4e2d\u6267\u884c\u589e\u3001\u5220\u3001\u6539\u64cd\u4f5c\uff0c\u6b64\u65f6sqlsession\u4f1a\u81ea\u52a8\u6e05\u7406\u5176\u5185\u90e8\u7684\u4e00\u7ea7\u7f13\u5b58<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u8c03\u7528SqlSession\u4e2d\u7684clearCache\u65b9\u6cd5\u6e05\u7406\u5176\u5185\u90e8\u7684\u4e00\u7ea7\u7f13\u5b58<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u8bbe\u7f6eMapper xml\u4e2dselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u503c\u4e3atrue\uff0c\u90a3\u4e48\u6267\u884c\u67e5\u8be2\u7684\u65f6\u5019\u4f1a\u5148\u6e05\u7a7a\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\uff0c\u7136\u540e\u53bbdb\u4e2d\u83b7\u53d6\u6570\u636e<\/strong><\/p>\n<\/li>\n<\/ol>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0a\u9762\u65b9\u5f0f\u4efb\u4f55\u4e00\u79cd\u90fd\u4f1a\u8ba9\u5f53\u524dSqlSession\u4e2d\u7684\u4ee5\u53ca\u7f13\u5b58\u5931\u6548\uff0c\u8fdb\u800c\u53bbdb\u4e2d\u83b7\u53d6\u6570\u636e\uff0c\u4e0b\u9762\u6211\u4eec\u6765\u5206\u522b\u6f14\u793a\u8fd93\u79cd\u60c5\u51b5\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u65b9\u5f0f1\uff1a\u589e\u5220\u6539\u8ba9\u4e00\u7ea7\u7f13\u5b58\u5931\u6548<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5f53\u6267\u884c\u589e\u5220\u6539\u64cd\u65f6\uff0cmybatis\u4f1a\u5c06\u5f53\u524dSqlSession\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\u90fd\u6e05\u9664\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6848\u4f8b\u4ee3\u7801\uff1a<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level1CacheTest2\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u589e\u5220\u6539\u4f7f\u4e00\u7ea7\u7f13\u5b58\u5931\u6548\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level1CacheTest2<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e00\u6b21\u67e5\u8be2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u65b0\u589e\u4e00\u6761\u6570\u636e<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mapper.insert1(UserModel.builder().id(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>).name(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u8def\u4eba\"<\/span>).age(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>).build());\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e8c\u6b21\u67e5\u8be2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList2&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList2);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1&nbsp;==&nbsp;userModelList2);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0a\u9762\u540c\u4e00\u4e2aSqlSession\u4e2d\u6267\u884c\u4e863\u4e2a\u64cd\u4f5c\uff0c\u540c\u6837\u7684\u67e5\u8be2\u6267\u884c\u4e862\u6b21\uff0c2\u6b21\u67e5\u8be2\u4e2d\u95f4\u5939\u4e86\u4e00\u4e2a\u63d2\u5165\u64cd\u4f5c\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u8fd0\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">55.097<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">55.135<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">55.159<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">==<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">Total:<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">21:55.159<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">main<\/span>]&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">INFO<\/span>&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">c.j.chat05.demo9.Demo9Test<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">-<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">1,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u8def\u4eba\u7532Java,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">30),<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">2,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u5f20\u5b66\u53cb,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">50),<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">3,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u5218\u5fb7\u534e,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">50)]<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">21:55.161<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">main<\/span>]&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">DEBUG<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">c.j.c.d.mapper.UserMapper.insert1<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">-<\/span>&nbsp;==&gt;<\/span>&nbsp;&nbsp;Preparing:&nbsp;INSERT&nbsp;INTO&nbsp;t_user&nbsp;(id,name,age)&nbsp;VALUES&nbsp;(?,?,?)&nbsp;\n21:55.162&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;100(Integer),&nbsp;\u8def\u4eba(String),&nbsp;30(Integer)\n21:55.165&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">==<\/span>&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">Updates:<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">21:55.166<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">main<\/span>]&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">DEBUG<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">c.j.c.d.mapper.UserMapper.getList1<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">-<\/span>&nbsp;==&gt;<\/span>&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n21:55.166&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n21:55.167&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">==<\/span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">Total:<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">21:55.168<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">main<\/span>]&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">INFO<\/span>&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">c.j.chat05.demo9.Demo9Test<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">-<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">1,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u8def\u4eba\u7532Java,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">30),<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">2,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u5f20\u5b66\u53cb,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">50),<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">3,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u5218\u5fb7\u534e,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">50),<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">UserModel<\/span>(<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">100,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\u8def\u4eba,<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">age<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">30)]<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">21:55.168<\/span>&nbsp;[<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">main<\/span>]&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">INFO<\/span>&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">c.j.chat05.demo9.Demo9Test<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">-<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">false<\/span>\n<\/span><\/span><\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4ece\u8f93\u51fa\u4e2d\u53ef\u4ee5\u770b\u51fa2\u6b21\u67e5\u8be2\u90fd\u8bbf\u95ee\u4e86db\uff0c\u5e76\u4e14\u4e24\u6b21\u67e5\u8be2\u7684\u7ed3\u679c\u662f\u4e0d\u4e00\u6837\u7684\uff0c\u4e24\u4e2a\u96c6\u5408\u4e5f\u4e0d\u76f8\u7b49\uff0c\u63d2\u5165\u6570\u636e\u8ba9\u7f13\u5b58\u5931\u6548\u662f\u53ef\u4ee5\u7406\u89e3\u7684\uff0c\u63d2\u5165\u64cd\u4f5c\u53ef\u80fd\u4f1a\u6539\u53d8\u6570\u636e\u5e93\u4e2d\u7684\u6570\u636e\uff0c\u6240\u4ee5\u5982\u679c\u518d\u4ece\u7f13\u5b58\u4e2d\u53bb\u83b7\u53d6\uff0c\u53ef\u80fd\u83b7\u53d6\u5230\u7684\u6570\u636e\u548cdb\u4e2d\u7684\u6570\u636e\u4e0d\u4e00\u81f4\u7684\u60c5\u51b5\uff0cmybatis\u4e3a\u4e86\u907f\u514d\u8fd9\u79cd\u60c5\u51b5\uff0c\u5728\u6267\u884c\u63d2\u5165\u64cd\u4f5c\u7684\u65f6\u5019\uff0c\u4f1a\u5c06SqlSession\u4e2d\u7684\u4e00\u7ea7\u7f13\u5b58\u6e05\u7a7a\u3002\u5f53\u7136\u5220\u9664\u548c\u4fee\u6539\u4e5f\u540c\u6837\u4f1a\u6539\u53d8db\u4e2d\u7684\u6570\u636e\uff0c\u5982\u679c\u5728\u540c\u4e00\u4e2aSqlSession\u4e2d\u53bb\u6267\u884c\u5220\u9664\u6216\u8005\u4fee\u6539\u6570\u636e\u7684\u65f6\u5019\uff0cmybatis\u4e5f\u4e00\u6837\u4f1a\u6e05\u9664\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\uff0c\u5220\u9664\u548c\u4fee\u6539\u5927\u5bb6\u81ea\u5df1\u53ef\u4ee5\u51992\u4e2a\u4f8b\u5b50\u8bd5\u8bd5\uff0c\u770b\u770b\u662f\u5426\u4e5f\u4f1a\u6e05\u7406\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u65b9\u5f0f2\uff1aSqlSession.clearCache\u6e05\u7406\u4e00\u7ea7\u7f13\u5b58<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">SqlSession.clearCache()\u65b9\u6cd5\u4f1a\u5c06\u5f53\u524dSqlSession\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\u6e05\u9664\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6848\u4f8b\u4ee3\u7801\uff1a<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level1CacheTest3\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u8c03\u7528sqlSession.clearCache()\u6e05\u7406\u4e00\u7ea7\u7f13\u5b58\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level1CacheTest3<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e00\u6b21\u67e5\u8be2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u8c03\u7528clearCache\u65b9\u6cd5\u6e05\u7406\u5f53\u524dSqlSession\u4e2d\u7684\u7f13\u5b58<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sqlSession.clearCache();\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e8c\u6b21\u67e5\u8be2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList2&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList2);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1&nbsp;==&nbsp;userModelList2);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u8fd0\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.937<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.966<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.985<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.985<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.988<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.988<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.989<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.989<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">31<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">21.990<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">false<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4ece\u8f93\u51fa\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c2\u6b21\u540c\u6837\u7684\u67e5\u8be2\u90fd\u8bbf\u95ee\u4e86db\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u65b9\u5f0f3\uff1aSelect\u5143\u7d20\u7684flushCache\u7f6e\u4e3atrue<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5c06Mapper xml\u4e2dselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue\u7684\u65f6\u5019\uff0c\u6bcf\u6b21\u6267\u884c\u8fd9\u4e2aselect\u5143\u7d20\u5bf9\u5e94\u7684\u67e5\u8be2\u4e4b\u524d\uff0cmybatis\u4f1a\u5c06\u5f53\u524dSqlSession\u4e2d\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\u90fd\u6e05\u9664\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6848\u4f8b\u4ee3\u7801<\/span><\/h5>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u65b0\u589e\u4e00\u4e2aselect\u5143\u7d20\u7684\u67e5\u8be2\uff0c\u5c06flushCache\u5143\u7d20\u7f6e\u4e3atrue\uff0c\u6ce8\u610f\uff1aselect\u5143\u7d20\u8fd9\u4e2a\u5c5e\u6027\u7684\u9ed8\u8ba4\u503c\u662ffalse\u3002<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList2\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">flushCache<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"true\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">resultType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"com.javacode2018.chat05.demo9.model.UserModel\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">parameterType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"map\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"id!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;id&nbsp;=&nbsp;#{id}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"name!=null&nbsp;and&nbsp;name.toString()!=''\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;name&nbsp;=&nbsp;#{name}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"age!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;age&nbsp;=&nbsp;#{age}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&gt;<\/span>\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u5bf9\u5e94\u6d4b\u8bd5\u7528\u4f8b<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level1CacheTest4\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u5c06Mapper xml\u4e2dselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue\u7684\u65f6\u5019\uff0c\u6bcf\u6b21\u6267\u884c\u8fd9\u4e2aselect\u5143\u7d20\u5bf9\u5e94\u7684\u67e5\u8be2\u4e4b\u524d\uff0cmybatis\u4f1a\u5c06\u5f53\u524dSqlSession\u4e2d\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\u90fd\u6e05\u9664\u3002\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level1CacheTest4<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u67e5\u8be21\uff1agetList1<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be21&nbsp;start\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be21\uff1agetList1-&gt;{}\"<\/span>,&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>));\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u67e5\u8be22\uff1agetList1<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be22&nbsp;start\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be22\uff1agetList1-&gt;{}\"<\/span>,&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>));\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u67e5\u8be23\uff1agetList2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be23&nbsp;start\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be23\uff1agetList2-&gt;{}\"<\/span>,&nbsp;mapper.getList2(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>));\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u67e5\u8be24\uff1agetList2<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be24&nbsp;start\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be24\uff1agetList2-&gt;{}\"<\/span>,&nbsp;mapper.getList2(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>));\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u67e5\u8be25\uff1agetList1<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be25&nbsp;start\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u67e5\u8be25\uff1agetList1-&gt;{}\"<\/span>,&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>));\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u6ce8\u610f\u4e0a\u9762\u7684\u4ee3\u7801\uff0c\u4ee3\u7801\u4e2d\u67095\u6b21\u67e5\u8be2\uff0c\u7b2c1\u6b21\u3001\u7b2c2\u6b21\u3001\u7b2c5\u6b21\u67e5\u8be2\u8c03\u7528\u7684\u90fd\u662fgetList1\uff0c\u8fd9\u4e2a\u67e5\u8be2\u5bf9\u5e94\u7684mapper xml\u4e2d\u7684select\u5143\u7d20\u7684flushCache\u5c5e\u6027\u6ca1\u6709\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u662ffalse\uff1b\u800c\u7b2c3\u6b21\u548c\u7b2c4\u6b21\u67e5\u8be2\u8c03\u7528\u7684\u662fgetList2\uff0cgetList2\u8fd9\u4e2a\u67e5\u8be2\u5bf9\u5e94\u7684mapper xml\u4e2d\u7684select(id=getList2)\uff0c\u5b83\u7684flushCache\u5c5e\u6027\u8bbe\u7f6e\u7684\u662ftrue\uff0c\u8bf4\u660e\u7b2c3\u548c\u7b2c4\u6b21\u67e5\u8be2\u4f1a\u6e05\u7a7a\u5f53\u524d\u4e00\u7ea7\u7f13\u5b58\u4e2d\u6240\u6709\u6570\u636e\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u6700\u7ec8\u6548\u679c\u5e94\u8be5\u662f\u67e5\u8be21\u8bbf\u95eedb\u62ff\u53bb\u6570\u636e\uff0c\u7136\u540e\u5c06\u5176\u4e22\u5230\u4e00\u7ea7\u7f13\u5b58\u4e2d\uff0c\u67e5\u8be22\u4f1a\u76f4\u63a5\u4ece\u4e00\u7ea7\u7f13\u5b58\u4e2d\u62ff\u5230\u6570\u636e\uff0c\u800c\u67e5\u8be23\u8d70\u7684\u662fgetList2\uff0c\u53d1\u73b0flushCache\u4e3atrue\uff0c\u4f1a\u5148\u6e05\u7a7a\u4e00\u7ea7\u7f13\u5b58\u4e2d\u6240\u6709\u6570\u636e\uff0c\u4e5f\u5c31\u662f\u6b64\u65f6\u67e5\u8be21\u653e\u5165\u7f13\u5b58\u7684\u6570\u636e\u4f1a\u88ab\u6e05\u7406\u6389\uff0c\u7136\u540e\u67e5\u8be23\u4f1a\u8bbf\u95eedb\u83b7\u53d6\u6570\u636e\uff0c\u7136\u540e\u4e22\u5230\u7f13\u5b58\u4e2d\uff1b\u800c\u67e5\u8be24\u8d70\u7684\u662fgetList2\uff0c\u53d1\u73b0flushCache\u4e3atrue\uff0c\u4f1a\u5148\u6e05\u7a7a\u7f13\u5b58\uff0c\u6240\u4ee53\u653e\u5165\u4e00\u7ea7\u7f13\u5b58\u7684\u6570\u636e\u4f1a\u88ab\u6e05\u7a7a\uff0c\u7136\u540e\u5bfc\u81f4\u67e5\u8be24\u4e5f\u4f1a\u8bbf\u95eedb\uff0c\u67e5\u8be25\u53bb\u4e00\u7ea7\u7f13\u5b58\u4e2d\u67e5\u8be2\u6570\u636e\uff0c\u56e0\u4e3a\u67e5\u8be21\u548c2\u653e\u5165\u7f13\u5b58\u7684\u6570\u636e\u90fd\u88ab\u67e5\u8be23\u6e05\u7a7a\u4e86\uff0c\u6240\u4ee5\u5bfc\u81f4\u67e5\u8be25\u53d1\u73b0\u4e00\u7ea7\u7f13\u5b58\u4e2d\u6ca1\u6709\u6570\u636e\uff0c\u4e5f\u4f1a\u8bbf\u95eedb\u53bb\u83b7\u53d6\u6570\u636e\u3002<\/strong><\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u6211\u4eec\u6765\u8fd0\u884c\u4e00\u4e0b\u770b\u770b\u770b\u770b\u662f\u5426\u548c\u6211\u4eec\u5206\u6790\u7684\u4e00\u81f4\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u8fd0\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">10.872<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>&nbsp;start\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.164<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.195<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.216<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.216<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>\uff1agetList1-&gt;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.218<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>&nbsp;start\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.218<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>\uff1agetList1-&gt;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.219<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>&nbsp;start\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.219<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.219<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.222<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.222<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>\uff1agetList2-&gt;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.222<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>&nbsp;start\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.223<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.223<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.225<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.225<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\uff1agetList2-&gt;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.225<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5<\/span>&nbsp;start\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.225<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.225<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.230<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">20<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">11.230<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;\u67e5\u8be2<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5<\/span>\uff1agetList1-&gt;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5927\u5bb6\u8ba4\u771f\u770b\u4e00\u4e0b\u4e0a\u9762\u7684\u8f93\u51fa\uff0c\u67e5\u8be21\/3\/4\/5\u8bbf\u95ee\u4e86db\uff0c\u67e5\u8be22\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\u7684\uff0c\u548c\u6211\u4eec\u4e0a\u9762\u5206\u6790\u7684\u8fc7\u7a0b\u4e00\u81f4\u3002<\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4e00\u7ea7\u7f13\u5b58\u4f7f\u7528\u603b\u7ed3<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u4e00\u7ea7\u7f13\u5b58\u662fSqlSession\u7ea7\u522b\u7684\uff0c\u6bcf\u4e2a\u4ebaSqlSession\u6709\u81ea\u5df1\u7684\u4e00\u7ea7\u7f13\u5b58\uff0c\u4e0d\u540c\u7684SqlSession\u4e4b\u95f4\u4e00\u7ea7\u7f13\u5b58\u662f\u76f8\u4e92\u9694\u79bb\u7684<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">mybatis\u4e2d\u4e00\u7ea7\u7f13\u5b58\u9ed8\u8ba4\u662f\u81ea\u52a8\u5f00\u542f\u7684<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u5f53\u5728\u540c\u4e00\u4e2aSqlSession\u4e2d\u6267\u884c\u540c\u6837\u7684\u67e5\u8be2\u7684\u65f6\u5019\uff0c\u4f1a\u5148\u4ece\u4e00\u7ea7\u7f13\u5b58\u4e2d\u67e5\u627e\uff0c\u5982\u679c\u627e\u5230\u4e86\u76f4\u63a5\u8fd4\u56de\uff0c\u5982\u679c\u6ca1\u6709\u627e\u5230\u4f1a\u53bb\u8bbf\u95eedb\uff0c\u7136\u540e\u5c06db\u8fd4\u56de\u7684\u6570\u636e\u4e22\u5230\u4e00\u7ea7\u7f13\u5b58\u4e2d\uff0c\u4e0b\u6b21\u67e5\u8be2\u7684\u65f6\u5019\u76f4\u63a5\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u4e00\u7ea7\u7f13\u5b58\u6e05\u7a7a\u76843\u79cd\u65b9\u5f0f\uff081\uff1aSqlSession\u4e2d\u6267\u884c\u589e\u5220\u6539\u4f1a\u4f7f\u4e00\u7ea7\u7f13\u5b58\u5931\u6548\uff1b2\uff1a\u8c03\u7528SqlSession.clearCache\u65b9\u6cd5\u4f1a\u4f7f\u4e00\u7ea7\u7f13\u5b58\u5931\u6548\uff1b3\uff1aMapper xml\u4e2d\u7684select\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue\uff0c\u90a3\u4e48\u6267\u884c\u8fd9\u4e2a\u67e5\u8be2\u4f1a\u4f7f\u4e00\u7ea7\u7f13\u5b58\u5931\u6548\uff09<\/strong><\/p>\n<\/li>\n<\/ol>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u4e8c\u7ea7\u7f13\u5b58<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u4e8c\u7ea7\u7f13\u5b58\u7684\u4f7f\u7528<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e00\u7ea7\u7f13\u5b58\u4f7f\u7528\u4e0a\u5b58\u5728\u5c40\u9650\u6027\uff0c\u5fc5\u987b\u8981\u5728\u540c\u4e00\u4e2aSqlSession\u4e2d\u6267\u884c\u540c\u6837\u7684\u67e5\u8be2\uff0c\u4e00\u7ea7\u7f13\u5b58\u624d\u80fd\u63d0\u5347\u67e5\u8be2\u901f\u5ea6\uff0c\u5982\u679c\u60f3\u5728\u4e0d\u540c\u7684SqlSession\u4e4b\u95f4\u4f7f\u7528\u7f13\u5b58\u6765\u52a0\u5feb\u67e5\u8be2\u901f\u5ea6\uff0c\u6b64\u65f6\u6211\u4eec\u9700\u8981\u7528\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e86\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e8c\u7ea7\u7f13\u5b58\u662fmapper\u7ea7\u522b\u7684\u7f13\u5b58\uff0c\u6bcf\u4e2amapper xml\u6709\u4e2anamespace\uff0c\u4e8c\u7ea7\u7f13\u5b58\u548cnamespace\u7ed1\u5b9a\u7684\uff0c\u6bcf\u4e2anamespace\u5173\u8054\u4e00\u4e2a\u4e8c\u7ea7\u7f13\u5b58\uff0c\u591a\u4e2aSqlSession\u53ef\u4ee5\u5171\u7528\u4e8c\u7ea7\u7f13\u5b58\uff0c\u4e8c\u7ea7\u7f13\u5b58\u662f\u8de8SqlSession\u7684\u3002<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e8c\u7ea7\u7f13\u5b58\u9ed8\u8ba4\u662f\u6ca1\u6709\u5f00\u542f\u7684\uff0c\u9700\u8981\u6211\u4eec\u5728mybatis\u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u4e2d\u8fdb\u884c\u5f00\u542f\uff1a<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">settings<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;!--&nbsp;\u5f00\u542f\u4e8c\u7ea7\u7f13\u5b58&nbsp;--&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">setting<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"cacheEnabled\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">value<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"true\"<\/span>\/&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">settings<\/span>&gt;<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0a\u9762\u914d\u7f6e\u597d\u4e86\u4ee5\u540e\uff0c\u8fd8\u9700\u8981\u5728\u5bf9\u5e94\u7684mapper xml\u52a0\u4e0a\u4e0b\u9762\u914d\u7f6e\uff0c\u8868\u793a\u8fd9\u4e2amapper\u4e2d\u7684\u67e5\u8be2\u5f00\u542f\u4e8c\u7ea7\u7f13\u5b58\uff1a<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">cache<\/span>\/&gt;<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u914d\u7f6e\u5c31\u8fd9\u4e48\u7b80\u5355\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u4e00\u4e8c\u7ea7\u7f13\u5b58\u5171\u5b58\u65f6\u67e5\u8be2\u539f\u7406<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e00\u4e8c\u7ea7\u7f13\u5b58\u5982\u679c\u90fd\u5f00\u542f\u7684\u60c5\u51b5\u4e0b\uff0c\u6570\u636e\u67e5\u8be2\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/p>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u5f53\u53d1\u8d77\u4e00\u4e2a\u67e5\u8be2\u7684\u65f6\u5019\uff0cmybatis\u4f1a\u5148\u8bbf\u95ee\u8fd9\u4e2anamespace\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\uff0c\u5982\u679c\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u6709\u6570\u636e\u5219\u76f4\u63a5\u8fd4\u56de\uff0c\u5426\u5219\u7ee7\u7eed\u5411\u4e0b<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u67e5\u8be2\u4e00\u7ea7\u7f13\u5b58\u4e2d\u662f\u5426\u6709\u5bf9\u5e94\u7684\u6570\u636e\uff0c\u5982\u679c\u6709\u5219\u76f4\u63a5\u8fd4\u56de\uff0c\u5426\u5219\u7ee7\u7eed\u5411\u4e0b<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u8bbf\u95eedb\u83b7\u53d6\u9700\u8981\u7684\u6570\u636e\uff0c\u7136\u540e\u653e\u5728\u5f53\u524dSqlSession\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\u4e2d\uff0c\u5e76\u4e14\u5728\u672c\u5730\u5185\u5b58\u4e2d\u7684\u53e6\u5916\u4e00\u4e2a\u5730\u65b9\u5b58\u50a8\u4e00\u4efd\uff08\u8fd9\u4e2a\u5730\u65b9\u6211\u4eec\u5c31\u53ebTransactionalCache\uff09<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u5f53SqlSession\u5173\u95ed\u7684\u65f6\u5019\uff0c\u4e5f\u5c31\u662f\u8c03\u7528SqlSession\u7684close\u65b9\u6cd5\u7684\u65f6\u5019\uff0c\u6b64\u65f6\u4f1a\u5c06TransactionalCache\u4e2d\u7684\u6570\u636e\u653e\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d\uff0c\u5e76\u4e14\u4f1a\u6e05\u7a7a\u5f53\u524dSqlSession\u4e00\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\u3002<\/strong><\/p>\n<\/li>\n<\/ol>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u4e8c\u7ea7\u7f13\u5b58\u6848\u4f8b<\/span><\/h4>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">mybatis\u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u5f00\u542f\u4e8c\u7ea7\u7f13\u5b58\u914d\u7f6e<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">settings<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;!--&nbsp;\u5f00\u542f\u4e8c\u7ea7\u7f13\u5b58&nbsp;--&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">setting<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">name<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"cacheEnabled\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">value<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"true\"<\/span>\/&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">settings<\/span>&gt;<\/span>\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">mapper xml\u4e2d\u4f7f\u7528cache\u5143\u7d20\u5f00\u542f\u4e8c\u7ea7\u7f13\u5b58<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;!--&nbsp;\u542f\u7528\u4e8c\u7ea7\u7f13\u5b58&nbsp;--&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">cache<\/span>\/&gt;<\/span>\n\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList1\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">resultType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"com.javacode2018.chat05.demo9.model.UserModel\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">parameterType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"map\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"id!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;id&nbsp;=&nbsp;#{id}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"name!=null&nbsp;and&nbsp;name.toString()!=''\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;name&nbsp;=&nbsp;#{name}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"age!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;age&nbsp;=&nbsp;#{age}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&gt;<\/span>\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6d4b\u8bd5\u7528\u4f8b<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level2CacheTest1\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u4e8c\u7ea7\u7f13\u5b58\u6d4b\u8bd5\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level2CacheTest1<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config1.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">for<\/span>&nbsp;(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">int<\/span>&nbsp;i&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0<\/span>;&nbsp;i&nbsp;&lt;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>;&nbsp;i++)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0a\u9762\u6267\u884c\u4e862\u6b21\u67e5\u8be2\uff0c\u6bcf\u6b21\u67e5\u8be2\u90fd\u662f\u65b0\u7684SqlSession\uff0c\u8fd0\u884c\u4e00\u4e0b\u770b\u770b\u6548\u679c\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6267\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.574<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.0<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.831<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.864<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.883<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.883<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.894<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.5<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.895<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u6ce8\u610f\u4e0a\u9762\u7b2c\u4e00\u884c\u65e5\u5fd7\u8f93\u51fa\uff1a<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.0<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5bf9\u8fd9\u884c\u505a\u4e00\u4e2a\u89e3\u91ca\uff1a<code style=\"font-size: inherit;line-height: inherit;overflow-wrap: break-word;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;color: rgb(248, 35, 117);background: rgb(248, 248, 248);\">com.javacode2018.chat05.demo9.mapper.UserMapper<\/code>\u662f\u4e0a\u9762\u67e5\u8be2\u8bbf\u95ee\u7684mapper xml\u7684namesapce\u7684\u503c\uff0c\u53bb\u8fd9\u4e2anamespace\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u53bb\u67e5\u8be2\u6570\u636e\uff0c\u6ca1\u6709\u67e5\u8be2\u5230\uff0c\u8f93\u51fa\u4e2d\u76840.0\u8868\u793a\u547d\u4e2d\u7387\uff0c\u8fd9\u6b21\u6ca1\u6709\u547d\u4e2d\uff0c\u6240\u4ee5\u547d\u4e2d\u7387\u4e3a0<\/p>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u7136\u540e\u5c31\u53bbdb\u4e2d\u8bbf\u95ee\u6570\u636e\u4e86\uff0c\u4f1a\u5c06db\u4e2d\u8fd4\u56de\u7684\u6570\u636e\u653e\u5728\u4e00\u7ea7\u7f13\u5b58\u4e2d\uff0c\u7b2c\u4e00\u6b21\u8fd0\u884c\u5b8c\u6bd5\u4e4b\u540e\u4f1a\u81ea\u52a8\u8c03\u7528SqlSession\u7684close\u65b9\u6cd5\uff0c\u7136\u540edb\u4e2d\u8fd4\u56de\u7684\u6570\u636e\u4f1a\u88ab\u4e22\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d\uff0c\u7b2c\u4e8c\u6b21\u67e5\u8be2\u7684\u65f6\u5019\u5c31\u76f4\u63a5\u4ece\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u83b7\u53d6\u5230\u6570\u636e\u8fd4\u56de\u4e86\uff0c\u6240\u4ee5\u7b2c\u4e8c\u6b21\u67e5\u8be2\u8f93\u51fa\u5982\u4e0b\uff1a<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.894<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.5<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">34<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">36.895<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">2\u6b21\u67e5\u8be2\u90fd\u53bb\u8bbf\u95ee\u4e86\u4e8c\u7ea7\u7f13\u5b58\uff0c\u7b2c\u4e8c\u6b21\u547d\u4e2d\u4e86\uff0c\u547d\u4e2d\u7387\u4e3a1\/2=0.5<\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6e05\u7a7a\u6216\u8005\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\u76843\u79cd\u65b9\u5f0f<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5f53\u4e8c\u7ea7\u7f13\u5b58\u5f00\u542f\u7684\u65f6\u5019\uff0c\u5728\u67d0\u4e2amapper xml\u4e2d\u6dfb\u52a0cache\u5143\u7d20\u4e4b\u540e\uff0c\u8fd9\u4e2amapper xml\u4e2d\u6240\u6709\u7684\u67e5\u8be2\u90fd\u9ed8\u8ba4\u5f00\u542f\u4e86\u4e8c\u7ea7\u7f13\u5b58\uff0c\u90a3\u4e48\u6211\u4eec\u5982\u4f55\u6e05\u7a7a\u6216\u8005\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\u5462\uff1f3\u79cd\u65b9\u5f0f\u5982\u4e0b\uff1a<\/p>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u5bf9\u5e94\u7684mapper\u4e2d\u6267\u884c\u589e\u5220\u6539\u67e5\u4f1a\u6e05\u7a7a\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u6570\u636e<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">select\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue\uff0c\u4f1a\u5148\u6e05\u7a7a\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\uff0c\u7136\u540e\u518d\u53bbdb\u4e2d\u67e5\u8be2\u6570\u636e\uff0c\u7136\u540e\u5c06\u6570\u636e\u518d\u653e\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">select\u5143\u7d20\u7684useCache\u5c5e\u6027\u7f6e\u4e3atrue\uff0c\u53ef\u4ee5\u4f7f\u8fd9\u4e2a\u67e5\u8be2\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\uff0c\u7136\u540e\u53bb\u67e5\u8be2\u6570\u636e<\/strong><\/p>\n<\/li>\n<\/ol>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0b\u9762\u6211\u4eec\u6765\u6f14\u793a\u4e00\u4e0b\u6bcf\u79cd\u65b9\u5f0f\u5bf9\u5e94\u7684\u6548\u679c\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u65b9\u5f0f1\uff1a\u589e\u5220\u6539\u4f1a\u6e05\u9664\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0b\u9762\u6211\u4eec\u4e3b\u8981\u6f14\u793a\u4e00\u4e0b\u65b0\u589e\u5bf9\u4e8c\u7ea7\u7f13\u5b58\u7684\u5f71\u54cd\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6848\u4f8b\u4ee3\u7801<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level2CacheTest2\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u589e\u5220\u6539\u4f1a\u6e05\u9664\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level2CacheTest2<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config1.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u65b0\u589e\u4e00\u6761\u6570\u636e<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mapper.insert1(UserModel.builder().id(Integer.valueOf(System.nanoTime()&nbsp;%&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">100000<\/span>&nbsp;+&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\"<\/span>)).name(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"\u8def\u4eba\"<\/span>).age(<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>).build());\n&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4e0a\u9762\u4f7f\u7528\u4e863\u4e2a\u4e0d\u540c\u7684SqlSession\uff0c\u7b2c\u4e00\u6b21\u548c\u7b2c\u4e09\u6b21\u90fd\u8c03\u7528\u4e86getList1\u6267\u884c\u67e5\u8be2\uff0c\u4e2d\u95f4\u6267\u884c\u4e86\u4e00\u4e2a\u63d2\u5165\u64cd\u4f5c\uff0cmybatis\u6267\u884c\u63d2\u5165\u7684\u65f6\u5019\uff0c\u4f1a\u5148\u6e05\u9664\u5f53\u524dnamespace\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\uff0c\u6240\u4ee5\u4e0a\u97622\u6b21\u67e5\u8be2\u6700\u7ec8\u90fd\u4f1a\u8bbf\u95eedb\uff0c\u6765\u8fd0\u884c\u4e00\u4e0b\u770b\u770b\u6548\u679c\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u8fd0\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.620<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.0<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.900<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.924<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.948<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.948<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.951<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">INSERT&nbsp;INTO&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">t_user<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">(id,name,age)<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">VALUES<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">(?,?,?)<\/span>&nbsp;\n23:00.953&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;<\/span>==&gt;&nbsp;Parameters:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">79600<\/span>(Integer),&nbsp;\u8def\u4eba(String),&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>(Integer)\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.955<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;Updates:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.959<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.0<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.959<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.959<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.961<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.961<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">79600<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.961<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">INSERT&nbsp;INTO&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">t_user<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">(id,name,age)<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">VALUES<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">(?,?,?)<\/span>&nbsp;\n23:00.962&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;<\/span>==&gt;&nbsp;Parameters:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">94100<\/span>(Integer),&nbsp;\u8def\u4eba(String),&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>(Integer)\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">23<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">00.967<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.insert1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;Updates:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4ece\u8f93\u51fa\u4e2d\u53ef\u4ee5\u770b\u51fa\uff0c2\u6b21\u67e5\u8be2\u90fd\u8bbf\u95ee\u4e86db\u3002\u4e0a\u9762\u6f14\u793a\u7684\u662f\u63d2\u5165\u4f1a\u6e05\u7a7a\u4e8c\u7ea7\u7f13\u5b58\u7684\u6570\u636e\uff0c\u540c\u6837\u5220\u9664\u548c\u4fee\u6539\u4e5f\u4f1a\u5148\u6e05\u9664\u5f53\u524dnamespace\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u65b9\u5f0f2\uff1aselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5f53\u5c06mapper xml\u4e2dselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue\uff0c\u4f1a\u5148\u6e05\u7a7a\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\uff0c\u7136\u540e\u518d\u53bbdb\u4e2d\u67e5\u8be2\u6570\u636e\uff0c\u7136\u540e\u5c06\u6570\u636e\u518d\u653e\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u3002<\/p>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u4ee3\u7801<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList2\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">flushCache<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"true\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">resultType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"com.javacode2018.chat05.demo9.model.UserModel\"<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">parameterType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"map\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"id!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;id&nbsp;=&nbsp;#{id}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"name!=null&nbsp;and&nbsp;name.toString()!=''\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;name&nbsp;=&nbsp;#{name}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"age!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;age&nbsp;=&nbsp;#{age}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&gt;<\/span>\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u6d4b\u8bd5\u7528\u4f8b<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">com.javacode2018.chat05.demo9.Demo9Test#level2CacheTest3\n\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;\u5f53\u5c06mapper&nbsp;xml\u4e2dselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3atrue\uff0c\u4f1a\u5148\u6e05\u7a7a\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\uff0c\u7136\u540e\u518d\u53bbdb\u4e2d\u67e5\u8be2\u6570\u636e\uff0c\u7136\u540e\u5c06\u6570\u636e\u518d\u653e\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level2CacheTest3<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config1.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u5148\u67e5\u8be22\u6b21getList1,getList1\u7b2c\u4e8c\u6b21\u4f1a\u4ece\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u62ff\u5230\u6570\u636e<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList1\u67e5\u8be2\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">for<\/span>&nbsp;(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">int<\/span>&nbsp;i&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0<\/span>;&nbsp;i&nbsp;&lt;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>;&nbsp;i++)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/getList2\u7684flushCache\u4e3atrue\uff0c\u6240\u4ee5\u67e5\u8be2\u4e4b\u524d\u4f1a\u5148\u5c06\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6240\u6709\u6570\u636e\u6e05\u7a7a\uff0c\u6240\u4ee5\u4e8c\u6b21\u90fd\u4f1a\u8bbf\u95eedb<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList2\u67e5\u8be2\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">for<\/span>&nbsp;(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">int<\/span>&nbsp;i&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0<\/span>;&nbsp;i&nbsp;&lt;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>;&nbsp;i++)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList2(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u6ca1\u6709getList1\u9700\u8981\u67e5\u627e\u7684\u6570\u636e\u4e86\uff0c\u6240\u4ee5\u8fd9\u6b21\u8bbf\u95eegetList1\u4f1a\u53bb\u8bbf\u95eedb<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList1\u67e5\u8be2\"<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<h5 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u8fd0\u884c\u8f93\u51fa<\/span><\/h5>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.560<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;getList1\u67e5\u8be2\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.842<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.871<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.891<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.892<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.905<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.5<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.906<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.906<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;getList2\u67e5\u8be2\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.906<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.3333333333333333<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.907<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.907<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.909<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.909<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.910<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.5<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.913<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.913<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.914<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList2&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.914<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.915<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;getList1\u67e5\u8be2\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.915<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.915<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.915<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.917<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">02<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">51.917<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u7b2c\u4e00\u6b21\u67e5\u8be2\u8bbf\u95eedb\uff0c\u7b2c\u4e8c\u6b21\u67e5\u8be2\u4ece\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u83b7\u53d6\u4e86\u6570\u636e\uff0c\u7b2c3\u548c\u7b2c4\u67e5\u8be2\u8bbf\u95ee\u7684\u662fgetList2\uff0c\u8fd9\u4e2a\u67e5\u8be2\u4f1a\u6e05\u7a7a\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u7684\u6570\u636e\uff0c\u76f4\u63a5\u53bbdb\u4e2d\u67e5\u8be2\uff0c\u67e5\u8be24\u6267\u884c\u5b8c\u6bd5\u4e4b\u540e\uff0c\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u53ea\u6709\u7b2c\u56db\u6b21\u67e5\u8be2\u7684\u6570\u636e\uff0c\u7b2c5\u6b21\u67e5\u8be2\u53bbgetList1\u4e2d\u83b7\u53d6\u6570\u636e\uff0c\u6b64\u65f6\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u6ca1\u6709\uff0c\u6240\u4ee5\u76f4\u63a5\u53bbdb\u4e2d\u83b7\u53d6\u4e86\u3002<\/p>\n<h4 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;font-size: 1.2em;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;\">\u65b9\u5f0f3\uff1aselect\u5143\u7d20\u7684useCache\u7f6e\u4e3afalse\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\uff0c\u4f46\u662f\u4e0d\u4f1a\u60c5\u51b5\u4e8c\u7ea7\u7f13\u5b58\u6570\u636e<\/span><\/h4>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u65b0\u589e\u4e00\u4e2aselect3\u67e5\u8be2\uff0c\u5c06useCache\u7f6e\u4e3afalse\uff0c\u5982\u4e0b\uff1a<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">id<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"getList3\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">useCache<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"false\"<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">resultType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"com.javacode2018.chat05.demo9.model.UserModel\"<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">parameterType<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"map\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"id!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;id&nbsp;=&nbsp;#{id}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"name!=null&nbsp;and&nbsp;name.toString()!=''\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;name&nbsp;=&nbsp;#{name}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">test<\/span>=<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"age!=null\"<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AND&nbsp;age&nbsp;=&nbsp;#{age}\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">if<\/span>&gt;<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">where<\/span>&gt;<\/span>\n<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">&lt;\/<span style=\"font-size: inherit;line-height: inherit;color: rgb(232, 191, 106);overflow-wrap: inherit !important;word-break: inherit !important;\">select<\/span>&gt;<\/span>\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u5bf9\u5e94\u7684\u7528\u4f8b\u4ee3\u7801<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/**\n&nbsp;*&nbsp;select\u5143\u7d20\u7684useCache\u7f6e\u4e3afalse\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\uff0c\u4f46\u662f\u4e0d\u4f1a\u60c5\u51b5\u4e8c\u7ea7\u7f13\u5b58\u6570\u636e\n&nbsp;*\n&nbsp;*&nbsp;<span style=\"font-size: inherit;color: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">@throws<\/span>&nbsp;IOException\n&nbsp;*\/<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(187, 181, 41);overflow-wrap: inherit !important;word-break: inherit !important;\">@Test<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\"><span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">public<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">void<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(255, 198, 109);overflow-wrap: inherit !important;word-break: inherit !important;\">level2CacheTest4<\/span><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">()<\/span>&nbsp;<span style=\"font-size: inherit;line-height: inherit;overflow-wrap: inherit !important;word-break: inherit !important;\">throws<\/span>&nbsp;IOException&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;String&nbsp;mybatisConfig&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"demo9\/mybatis-config1.xml\"<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.before(mybatisConfig);\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u7b2c\u4e00\u6b21\u67e5\u8be2\u8bbf\u95eegetList1\uff0c\u4f1a\u5c06\u6570\u636e\u4e22\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/getList3\u5bf9\u5e94\u7684select\u7684useCache\u4e3afalse\uff0c\u4f1a\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\uff0c\u6240\u4ee5\u4f1a\u76f4\u63a5\u53bb\u8bbf\u95eedb<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">for<\/span>&nbsp;(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">int<\/span>&nbsp;i&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0<\/span>;&nbsp;i&nbsp;&lt;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>;&nbsp;i++)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList3(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/\u4e0b\u9762\u7684\u67e5\u8be2\u53c8\u53bb\u6267\u884c\u4e86getList1\uff0c\u7531\u4e8e\u4e0a\u9762\u7684\u7b2c\u4e00\u6b21\u67e5\u8be2\u4e5f\u662f\u8bbf\u95eegetList1\u4f1a\u5c06\u6570\u636e\u653e\u5728\u4e8c\u7ea7\u7f13\u5b58\u4e2d\uff0c\u6240\u4ee5\u4e0b\u9762\u7684\u67e5\u8be2\u4f1a\u4ece\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u83b7\u53d6\u5230\u6570\u636e<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">try<\/span>&nbsp;(SqlSession&nbsp;sqlSession&nbsp;=&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">this<\/span>.sqlSessionFactory.openSession(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">true<\/span>);)&nbsp;{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UserMapper&nbsp;mapper&nbsp;=&nbsp;sqlSession.getMapper(UserMapper.class);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;List&lt;UserModel&gt;&nbsp;userModelList1&nbsp;=&nbsp;mapper.getList1(<span style=\"font-size: inherit;line-height: inherit;color: rgb(204, 120, 50);overflow-wrap: inherit !important;word-break: inherit !important;\">null<\/span>);\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;log.info(<span style=\"font-size: inherit;line-height: inherit;color: rgb(106, 135, 89);overflow-wrap: inherit !important;word-break: inherit !important;\">\"{}\"<\/span>,&nbsp;userModelList1);\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u6ce8\u610f\u4e0a\u9762\u67094\u6b21\u67e5\u8be2\uff0c\u7b2c\u4e00\u6b21\u67e5\u8be2\u8bbf\u95eegetList1\uff0c\u4f1a\u5c06\u6570\u636e\u4e22\u5230\u4e8c\u7ea7\u7f13\u5b58\u4e2d\uff0c\u800c\u7b2c\u4e8c\u4e09\u6b21\u67e5\u8be2\u8bbf\u95ee\u7684\u662fgetList3\uff0cgetList3\u5bf9\u5e94\u7684select\u7684useCache\u4e3afalse\uff0c\u4f1a\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58\uff0c\u6240\u4ee5\u4f1a\u76f4\u63a5\u53bb\u8bbf\u95eedb\uff0c\u7b2c\u56db\u6b21\u67e5\u8be2\u4e5f\u662f\u8bbf\u95eegetList1\uff0c\u7531\u4e8e\u7b2c\u4e00\u6b21\u67e5\u8be2\u4e5f\u662f\u8bbf\u95eegetList1\u4f1a\u5c06\u6570\u636e\u653e\u5728\u4e8c\u7ea7\u7f13\u5b58\u4e2d\uff0c\u6240\u4ee5\u7b2c4\u6b21\u67e5\u8be2\u76f4\u63a5\u4ece\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u83b7\u53d6\u5230\u4e86\u6570\u636e\uff0c\u8fd0\u884c\u8f93\u51fa\uff1a<\/p>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\"><span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.454<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.0<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.852<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.898<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.929<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList1&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.930<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.941<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList3&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.942<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList3&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.945<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList3&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.945<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.946<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList3&nbsp;-&nbsp;==&gt;&nbsp;&nbsp;Preparing:&nbsp;SELECT&nbsp;id,name,age&nbsp;FROM&nbsp;t_user&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.946<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList3&nbsp;-&nbsp;==&gt;&nbsp;Parameters:&nbsp;\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.952<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.c.d.mapper.UserMapper.getList3&nbsp;-&nbsp;&lt;==&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Total:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">4<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.952<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.957<\/span>&nbsp;[main]&nbsp;DEBUG&nbsp;c.j.chat05.demo9.mapper.UserMapper&nbsp;-&nbsp;Cache&nbsp;Hit&nbsp;Ratio&nbsp;[com.javacode2018.chat05.demo9.mapper.UserMapper]:&nbsp;<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">0.5<\/span>\n<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">13<\/span>:<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">38.957<\/span>&nbsp;[main]&nbsp;INFO&nbsp;&nbsp;c.j.chat05.demo9.Demo9Test&nbsp;-&nbsp;[UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">1<\/span>,&nbsp;name=\u8def\u4eba\u7532Java,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">2<\/span>,&nbsp;name=\u5f20\u5b66\u53cb,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">3<\/span>,&nbsp;name=\u5218\u5fb7\u534e,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">50<\/span>),&nbsp;UserModel(id=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">5100<\/span>,&nbsp;name=\u8def\u4eba,&nbsp;age=<span style=\"font-size: inherit;line-height: inherit;color: rgb(104, 151, 187);overflow-wrap: inherit !important;word-break: inherit !important;\">30<\/span>)]\n<\/code><\/pre>\n<p style=\"font-size: inherit;color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;\">\u4ece\u8f93\u51fa\u4e2d\u53ef\u4ee5\u770b\u51fa\u524d\u97623\u6b21\u67e5\u8be2\u90fd\u8bbf\u95eedb\u4e86\uff0c\u6700\u540e\u4e00\u6b21\u67e5\u8be2\u8bbf\u95ee\u7684\u662f\u4e8c\u7ea7\u7f13\u5b58\u547d\u4e2d\u4e86\u6570\u636e\u30024\u6b21\u67e5\u8be2\uff0c\u7b2c1\u6b21\u548c\u7b2c4\u6b21\u4f1a\u8bbf\u95ee\u4e8c\u7ea7\u7f13\u5b58\uff0c\u4e2d\u95f42\u6b21\u8df3\u8fc7\u4e86\u4e8c\u7ea7\u7f13\u5b58\uff0c\u4e8c\u7ea7\u7f13\u5b58\u547d\u4e2d\u4e861\u6b21\uff0c\u6240\u4ee5\u6700\u540e\u4e00\u6b21\u8f93\u51fa\u7684\u547d\u4e2d\u7387\u662f0.5<\/p>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u603b\u7ed3<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u4e00\u4e8c\u7ea7\u7f13\u5b58\u8bbf\u95ee\u987a\u5e8f\uff1a\u4e00\u4e8c\u7ea7\u7f13\u5b58\u90fd\u5b58\u5728\u7684\u60c5\u51b5\u4e0b\uff0c\u4f1a\u5148\u8bbf\u95ee\u4e8c\u7ea7\u7f13\u5b58\uff0c\u7136\u540e\u518d\u8bbf\u95ee\u4e00\u7ea7\u7f13\u5b58\uff0c\u6700\u540e\u624d\u4f1a\u8bbf\u95eedb\uff0c\u8fd9\u4e2a\u987a\u5e8f\u5927\u5bb6\u7406\u89e3\u4e00\u4e0b<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u5c06mapper xml\u4e2dselect\u5143\u7d20\u7684flushCache\u5c5e\u6027\u7f6e\u4e3afalse\uff0c\u6700\u7ec8\u4f1a\u6e05\u9664\u4e00\u7ea7\u7f13\u5b58\u6240\u6709\u6570\u636e\uff0c\u540c\u65f6\u4f1a\u6e05\u9664\u8fd9\u4e2aselect\u6240\u5728\u7684namespace\u5bf9\u5e94\u7684\u4e8c\u7ea7\u7f13\u5b58\u4e2d\u6240\u6709\u7684\u6570\u636e<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u5c06mapper xml\u4e2dselect\u5143\u7d20\u7684useCache\u7f6e\u4e3afalse\uff0c\u4f1a\u4f7f\u8fd9\u4e2a\u67e5\u8be2\u8df3\u8fc7\u4e8c\u7ea7\u7f13\u5b58<\/strong><\/p>\n<\/li>\n<li>\n<p style=\"\"><strong style=\"font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);\">\u603b\u4f53\u4e0a\u6765\u8bf4\u4f7f\u7528\u7f13\u5b58\u53ef\u4ee5\u63d0\u5347\u67e5\u8be2\u6548\u7387\uff0c\u8fd9\u5757\u77e5\u8bc6\u638c\u63e1\u4e86\uff0c\u5927\u5bb6\u53ef\u4ee5\u6839\u636e\u4e1a\u52a1\u81ea\u884c\u9009\u62e9<\/strong><\/p>\n<\/li>\n<\/ol>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u6848\u4f8b\u4ee3\u7801<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<pre style=\"font-size: inherit;color: inherit;line-height: inherit;\"><code style=\"margin-right: 2px;margin-left: 2px;line-height: 18px;font-size: 14px;word-spacing: 0px;letter-spacing: 0px;font-family: Consolas, Inconsolata, Courier, monospace;border-radius: 0px;color: rgb(169, 183, 198);background: rgb(40, 43, 46);padding: 0.5em;overflow-wrap: normal !important;word-break: normal !important;overflow: auto !important;display: -webkit-box !important;\">\u94fe\u63a5\uff1ahttps:<span style=\"font-size: inherit;line-height: inherit;color: rgb(128, 128, 128);overflow-wrap: inherit !important;word-break: inherit !important;\">\/\/pan.baidu.com\/s\/1vt-MAX3oJOu9gyxZAhKkbg&nbsp;<\/span>\n\u63d0\u53d6\u7801\uff1ai8op\n<\/code><\/pre>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">MyBatis\u7cfb\u5217<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933772&amp;idx=1&amp;sn=5c8fbb4550015ca616c25c16631c11f0&amp;chksm=88621db2bf1594a4dce7882fb14296e45c08b368caf3302af84f7a7946428f215a1de9876c2d&amp;token=408484753&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >MyBatis\u7cfb\u5217\u7b2c1\u7bc7\uff1aMyBatis\u672a\u51fa\u4e16\u4e4b\u524d\u6211\u4eec\u90a3\u4e9b\u75db\u82e6\u7684\u7ecf\u5386<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933781&amp;idx=1&amp;sn=cd349719c9611de49dd6cd7d0c02ebf0&amp;chksm=88621dabbf1594bdd239280672cf08b71771e2d24b7b5d5f23302fd8c8e04d8680bb60c88cb7&amp;token=215691954&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >MyBatis\u7cfb\u5217\u7b2c2\u7bc7\uff1a\u5165\u95e8\u7bc7\uff0c\u5e26\u4f60\u611f\u53d7\u4e00\u4e0bmybatis\u72ec\u7279\u7684\u9b45\u529b\uff01<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933801&amp;idx=1&amp;sn=9b256c9f11e46b100732c8f4329ce4ce&amp;chksm=88621d97bf15948111bba06968e9061b2f088a6ee9125c29ef0465eb653bfc7b00624d58d171&amp;token=1974383885&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >MyBatis\u7cfb\u5217\u7b2c3\u7bc7\uff1aMybatis\u4f7f\u7528\u8be6\u89e3\uff081\uff09<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933822&amp;idx=1&amp;sn=15492831e38fa4608ddfb84602f68d4e&amp;chksm=88621d80bf1594965bfac4dc01177e47098dc1d4f47938cfc60e8a4b8031ff004796a9f3cce7&amp;token=60191576&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >MyBatis\u7cfb\u5217\u7b2c4\u7bc7\uff1aMybatis\u4f7f\u7528\u8be6\u89e3\uff082\uff09<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933828&amp;idx=1&amp;sn=213e8f18993030a56533e58d68d6f0d4&amp;chksm=88621dfabf1594ec8ea473a767e2bdf7f356fb5620ba1c81eb0984101618646e9986db8e6eac&amp;token=278682530&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c5\u7bc7\uff1aMapper\u63a5\u53e3\u591a\u79cd\u65b9\u5f0f\u4f20\u53c2\u8be6\u89e3\u3001\u539f\u7406\u3001\u6e90\u7801\u89e3\u6790<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933834&amp;idx=1&amp;sn=d9baddc30d44988f70b777ecb521f347&amp;chksm=88621df4bf1594e231d12ca77395a06726515c47e4c48781c52a9c04ce14f918191584641aa9&amp;token=1904359041&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c6\u7bc7\uff1a\u6055\u6211\u76f4\u8a00\uff0cmybatis\u589e\u5220\u6539\u4f60\u672a\u5fc5\u73a9\u5f97\u8f6c!<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933838&amp;idx=1&amp;sn=3828c244de8bda310c1d454d54e249e6&amp;chksm=88621df0bf1594e646cbfdc4a48e63a0df0ea027bda5f90640eadf64ade0ffc9c6a04bf20cdc&amp;token=68572326&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c7\u7bc7\uff1a\u5404\u79cd\u67e5\u8be2\u8be6\u89e3<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933842&amp;idx=1&amp;sn=50a99fae1f2744a0f3b6fe1276c81a12&amp;chksm=88621decbf1594faeb76770535d3fe96737a5e6786523a148a02c752025f62c8934e9b046099&amp;token=1946753337&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c8\u7bc7\uff1a\u81ea\u52a8\u6620\u5c04\uff0c\u4f7f\u7528\u9700\u8c28\u614e\uff01<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933852&amp;idx=1&amp;sn=10153f2aa7d46f0d5e97a2c4f0d32c46&amp;chksm=88621de2bf1594f440cfdc7dd0f84882a223330c0419956fa2c711e3411f446f20d64ddfae4e&amp;token=565005697&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c9\u7bc7\uff1a\u5ef6\u8fdf\u52a0\u8f7d\u3001\u9274\u522b\u5668\u3001\u7ee7\u627f\u600e\u4e48\u73a9\uff1f<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933856&amp;idx=1&amp;sn=ee5a61eacafd94d39f93e38ccfcfbb64&amp;chksm=88621ddebf1594c8392ced8209417f02d0f88bf7cc88bad59ed1a033bb6ce027b557426ef361&amp;token=50719891&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c10\u7bc7\uff1a\u52a8\u6001SQL\uff0c\u8fd9\u4e48\u591a\u79cd\u4f60\u90fd\u4f1a\uff1f<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933864&amp;idx=1&amp;sn=e276a46d1c9b5f1aff7924376d9d77d7&amp;chksm=88621dd6bf1594c0bc7f960d9a18d59742acc2e93e0497a6bb86150b5a42d0abb21174abf367&amp;token=1215726768&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Mybatis\u7cfb\u5217\u7b2c11\u7bc7\uff1a\u7c7b\u578b\u5904\u7406\u5668\uff0c\u8fd9\u4e2a\u4f60\u5f97\u4f1a\u73a9<\/a><\/p>\n<\/li>\n<\/ol>\n<h3 style=\"color: inherit;line-height: inherit;margin-top: 1em;margin-bottom: 1em;font-weight: bold;border-bottom: 2px solid rgb(239, 112, 96);font-size: 1.3em;\"><span style=\"font-size: inherit;line-height: inherit;display: inline-block;font-weight: normal;background: rgb(239, 112, 96);color: rgb(255, 255, 255);padding: 3px 10px 1px;border-top-right-radius: 3px;border-top-left-radius: 3px;margin-right: 3px;\">\u66f4\u591a\u597d\u6587\u7ae0<\/span><span style=\"display: inline-block;vertical-align: bottom;border-bottom: 36px solid rgb(239, 235, 233);border-right: 20px solid transparent;\"> <\/span><\/h3>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933285&amp;idx=1&amp;sn=f5507c251b84c3405f2fe0f7fb1da97d&amp;chksm=88621b9bbf15928dd4c26f52b2abb0e130cde02100c432f33f0e90123b5e4b20d43017c1030e&amp;token=1916804008&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Java\u9ad8\u5e76\u53d1\u7cfb\u5217\uff08\u517134\u7bc7\uff09<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933461&amp;idx=1&amp;sn=67cd31469273b68a258d963e53b56325&amp;chksm=88621c6bbf15957d7308d81cd8ba1761b356222f4c6df75723aee99c265bd94cc869faba291c&amp;token=1916804008&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >MySql\u9ad8\u624b\u7cfb\u5217\uff08\u517127\u7bc7\uff09<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933753&amp;idx=1&amp;sn=0b41083939980be87a61c4f573792459&amp;chksm=88621d47bf1594516092b662c545abfac299d296e232bf25e9f50be97e002e2698ea78218828&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >Maven\u9ad8\u624b\u7cfb\u5217\uff08\u517110\u7bc7\uff09<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933452&amp;idx=1&amp;sn=48b3b1cbd27c50186122fef8943eca5f&amp;chksm=88621c72bf159564e629ee77d180424274ae9effd8a7c2997f853135b28f3401970793d8098d&amp;token=1919005508&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >\u804a\u804adb\u548c\u7f13\u5b58\u4e00\u81f4\u6027\u5e38\u89c1\u7684\u5b9e\u73b0\u65b9\u5f0f<\/a><\/p>\n<\/li>\n<li>\n<p style=\"\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzA5MTkxMDQ4MQ==&amp;mid=2648933334&amp;idx=1&amp;sn=3a68da36e4e21b7339418e40ab9b6064&amp;chksm=88621be8bf1592fe5301aab732fbed8d1747475f4221da341350e0cc9935225d41bf79375d43&amp;token=1919005508&amp;lang=zh_CN&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"font-size: inherit;line-height: inherit;color: rgb(30, 107, 184);overflow-wrap: break-word;\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" >\u63a5\u53e3\u5e42\u7b49\u6027\u8fd9\u4e48\u91cd\u8981\uff0c\u5b83\u662f\u4ec0\u4e48\uff1f\u600e\u4e48\u5b9e\u73b0\uff1f<\/a><\/p>\n<\/li>\n<\/ol>\n<\/section>\n<p style=\"\">\n<p style=\"max-width: 100%;min-height: 1em;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(62, 62, 62);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;letter-spacing: 2px;word-spacing: 2px;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(255, 0, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(255, 0, 0);font-family: \u5fae\u8f6f\u96c5\u9ed1;letter-spacing: 0.544px;widows: 1;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;letter-spacing: 0.612px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u611f\u8c22\u5927\u5bb6\u7684\u9605\u8bfb\uff0c\u4e5f\u6b22\u8fce\u60a8\u628a\u8fd9\u7bc7\u6587\u7ae0\u5206\u4eab\u7ed9\u66f4\u591a\u7684\u670b\u53cb\u4e00\u8d77\u9605\u8bfb\uff01\u8c22\u8c22\uff01<\/span><\/strong><\/strong><strong style=\"max-width: 100%;font-size: inherit;line-height: inherit;color: rgb(233, 105, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/strong><\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(62, 62, 62);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;letter-spacing: 2px;word-spacing: 2px;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/p>\n<section style=\"max-width: 100%;white-space: normal;background-color: rgb(255, 255, 255);color: rgb(62, 62, 62);font-family: &quot;Helvetica Neue&quot;, Helvetica, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;font-size: 15px;letter-spacing: 2px;word-spacing: 2px;line-height: 1.8;background-size: 20px 20px;background-position: center center;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"5\" style=\"max-width: 100%;box-sizing: border-box;font-size: 16px;letter-spacing: 0.612px;line-height: 28.4444px;border-width: 0px;border-style: none;border-color: initial;font-family: \u5fae\u8f6f\u96c5\u9ed1;overflow-wrap: break-word !important;\">\n<section style=\"margin: 2px auto;padding: 15px;max-width: 100%;box-sizing: border-box;overflow-wrap: break-word !important;line-height: 25px;border-width: 2px;border-style: dashed;border-color: rgb(222, 220, 222);\">\n<p style=\"margin: 0em 16px 5px;max-width: 100%;min-height: 1em;text-align: center;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(255, 0, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;color: rgb(46, 181, 170);font-size: 20px;letter-spacing: 0.544px;widows: 1;font-family: -apple-system-font, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;letter-spacing: 1px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u8def\u4eba\u7532java<\/span><\/strong><\/span><br style=\"max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/p>\n<section style=\"max-width: 100%;box-sizing: border-box;font-variant-numeric: normal;letter-spacing: 0px;widows: 1;line-height: 1.6;overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%;box-sizing: border-box;line-height: 1.6;letter-spacing: 0px;text-align: center;overflow-wrap: break-word !important;\">\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><img decoding=\"async\" class=\"rich_pages lazyload\" data-ratio=\"1.0045045045045045\" data-s=\"300,640\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" png\"=\"\" data-w=\"222\" style=\"box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible !important;width: 222px !important;\"><noscript><img decoding=\"async\" class=\"rich_pages\" data-ratio=\"1.0045045045045045\" data-s=\"300,640\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png\" png\"=\"\" data-w=\"222\" style=\"box-sizing: border-box !important;overflow-wrap: break-word !important;visibility: visible !important;width: 222px !important;\"><\/noscript><\/p>\n<\/section>\n<\/section>\n<p style=\"margin-right: 16px;margin-left: 16px;max-width: 100%;min-height: 1em;text-align: center;font-variant-numeric: normal;letter-spacing: 0.544px;widows: 1;line-height: 1.75em;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;line-height: 25.6px;font-size: 15px;color: rgb(89, 89, 89);letter-spacing: 1px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u25b2\u957f\u6309\u56fe\u7247\u8bc6\u522b\u4e8c\u7ef4\u7801\u5173\u6ce8<\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;font-variant-numeric: normal;letter-spacing: 0.544px;widows: 1;line-height: 25.6px;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><\/p>\n<p style=\"margin-right: 16px;margin-left: 16px;max-width: 100%;min-height: 1em;font-variant-numeric: normal;letter-spacing: 0.544px;widows: 1;line-height: 1.75em;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;color: rgb(255, 0, 0);box-sizing: border-box !important;overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;letter-spacing: 0.612px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u8def\u4eba\u7532Java\uff1a\u5de5\u4f5c10\u5e74\u7684\u524d\u963f\u91ccP7\u5206\u4eabJava\u3001\u7b97\u6cd5\u3001\u6570\u636e\u5e93\u65b9\u9762\u7684\u6280\u672f\u5e72\u8d27\uff01<\/span><\/strong><strong style=\"max-width: 100%;box-sizing: border-box !important;overflow-wrap: break-word !important;\"><span style=\"max-width: 100%;font-family: -apple-system-font, system-ui, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;box-sizing: border-box !important;overflow-wrap: break-word !important;\">\u575a\u4fe1\u7528\u6280\u672f\u6539\u53d8\u547d\u8fd0\uff0c\u8ba9\u5bb6\u4eba\u8fc7\u4e0a\u66f4\u4f53\u9762\u7684\u751f\u6d3b\uff01<\/span><\/strong><\/span><\/p>\n<\/section>\n<\/section>\n<\/section>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff1ahttps:\/\/mp.weixin.qq.com\/s\/hkzj-_JjO0r-ez1k8EXpkQ<\/p>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>Mybatis\u7cfb\u5217\u76ee\u6807\uff1a\u4ece\u5165\u95e8\u5f00\u59cb\u5f00\u59cb\u638c\u63e1\u4e00\u4e2a\u9ad8\u7ea7\u5f00\u53d1\u6240\u9700\u8981\u7684Mybatis\u6280\u80fd\u3002 \u8fd9\u662fmybatis\u7cfb\u5217\u7b2c12\u7bc7\uff0c\u6e90\u7801\u4f4d\u4e8e\u6587\u7ae0\u5c3e &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[33,7,8],"tags":[],"class_list":["post-2941","post","type-post","status-publish","format-standard","hentry","category-mybatis","category-spring-boot","category-spring-cloud"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-32-44\/20230714153244dcdc7bca5.png","id":"image1"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Mybatis","post_date":"2023-07-14","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":817,"next_post_id":2943,"next_post_title":"SpringBoot \u901a\u7528\u9650\u6d41\u65b9\u6848\uff08VIP\u73cd\u85cf\u7248\uff09","previous_post_id":2937,"previous_post_title":"SpringBoot \u4e2d\u7684\u591a\u7ebf\u7a0b\u4e8b\u52a1\u5904\u7406\u592a\u7e41\u7410\uff1f\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6ce8\u89e3\u76f4\u63a5\u641e\u5b9a\uff01","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=2941"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2941\/revisions"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}