{"id":4317,"date":"2024-03-10T23:19:40","date_gmt":"2024-03-10T15:19:40","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e6%95%b4%e5%90%88mybatis-plus%e9%85%8d%e7%bd%ae%e5%a4%9a%e6%95%b0%e6%8d%ae%e6%ba%90\/"},"modified":"2024-03-10T23:19:40","modified_gmt":"2024-03-10T15:19:40","slug":"spring-boot%e6%95%b4%e5%90%88mybatis-plus%e9%85%8d%e7%bd%ae%e5%a4%9a%e6%95%b0%e6%8d%ae%e6%ba%90","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e6%95%b4%e5%90%88mybatis-plus%e9%85%8d%e7%bd%ae%e5%a4%9a%e6%95%b0%e6%8d%ae%e6%ba%90\/","title":{"rendered":"Spring Boot\u6574\u5408MyBatis Plus\u914d\u7f6e\u591a\u6570\u636e\u6e90"},"content":{"rendered":"<div class='wxsyncmain'>\n<h1 cid=\"n0\" mdtype=\"heading\" style=\"margin-top: 1rem;margin-bottom: 1rem;padding-bottom: 0.3em;outline: 0px;font-weight: bold;letter-spacing: 0.544px;white-space: pre-wrap;color: rgb(34, 34, 34);background-color: rgb(255, 255, 255);line-height: 1.2;cursor: text;border-bottom: 1px solid rgb(238, 238, 238);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;visibility: visible;\"><span style=\"outline: 0px;color: rgb(178, 178, 178);visibility: visible;\">\u5982\u679c\u6587\u7ae0\u4e2d\u4ee3\u7801\u4e0d\u4fbf\u4e8e\u9605\u8bfb\uff0c\u8bf7\u4f7f\u7528\u7535\u8111\u67e5\u770b\u6216\u70b9\u51fb\u9605\u8bfb\u539f\u6587\u3002<\/span><\/h1>\n<p><span md-inline=\"plain\" style=\"color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;white-space-collapse: preserve;\">\u5728 <\/span><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzAxOTkxNTgzMA==&amp;mid=2247484135&amp;idx=1&amp;sn=0691e4f999b0026ea0221df2f5da2e5f&amp;chksm=9c3ef7beab497ea81dd4945cec32f35941b4ee9306cc9d035dbb595dff663cdec683cf6c686a&amp;scene=21#wechat_redirect\" textvalue=\"Spring Boot\u6574\u5408MyBatis\u914d\u7f6e\u591a\u6570\u636e\u6e90\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;white-space-collapse: preserve;\" rel=\"noopener\" rel=\"nofollow\" ><span md-inline=\"link\"><span md-inline=\"plain\">Spring Boot\u6574\u5408MyBatis\u914d\u7f6e\u591a\u6570\u636e\u6e90<\/span><\/span><\/a><span md-inline=\"plain\" style=\"color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;orphans: 4;text-align: start;white-space-collapse: preserve;\"> \u6587\u7ae0\u4e2d\uff0c\u5c55\u793a\u4e86Spring Boot\u6574\u5408Mybatis\u914d\u7f6e\u591a\u6570\u636e\u6e90\u7684\u65b9\u6cd5\u3002\u90a3\u4e48\uff0c\u5982\u679c\u4f7f\u7528MyBatis Plus\uff0c\u5982\u4f55\u914d\u7f6e\u591a\u6570\u636e\u6e90\u5462\uff1f<\/span><\/p>\n<p cid=\"n2\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">\u5b98\u65b9\u6587\u6863\uff1a<\/span><span md-inline=\"link\"><span md-inline=\"plain\">https:\/\/baomidou.com\/pages\/a61e1b\/<\/span><\/span><\/p>\n<p cid=\"n3\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">MyBatis Plus\u8fde\u63a5\u6570\u636e\u5e93\u53c2\u8003\uff1a<\/span><a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzAxOTkxNTgzMA==&amp;mid=2247484122&amp;idx=1&amp;sn=0c3f892597fbba3370d0392bb9df6a0c&amp;chksm=9c3ef783ab497e95dd8c40117a632e18c0cd7d281d30bb76549b5547cda9b54a6cec7b73b062&amp;scene=21#wechat_redirect\" textvalue=\"Spring Boot\u6574\u5408MyBatis Plus\u8fde\u63a5\u6570\u636e\u5e93\" linktype=\"text\" imgurl=\"\" imgdata=\"null\" data-itemshowtype=\"0\" tab=\"innerlink\" data-linktype=\"2\" rel=\"noopener\" rel=\"nofollow\" ><span md-inline=\"link\"><span md-inline=\"plain\">Spring Boot\u6574\u5408MyBatis Plus\u8fde\u63a5\u6570\u636e\u5e93<\/span><\/span><\/a><\/p>\n<p cid=\"n4\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\">\n<h1 cid=\"n5\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">0 \u5f00\u53d1\u73af\u5883<\/span><\/h1>\n<ul class=\"list-paddingleft-1\" cid=\"n6\" mdtype=\"list\" data-mark=\"*\" style=\"margin-top: 0.8em;margin-bottom: 0.8em;padding-left: 30px;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;\">\n<li>\n<p cid=\"n8\" mdtype=\"paragraph\" style=\"orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;\"><span md-inline=\"plain\">JDK\uff1a1.8<\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n10\" mdtype=\"paragraph\" style=\"orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;\"><span md-inline=\"plain\">Spring Boot\uff1a2.1.1.RELEASE<\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n12\" mdtype=\"paragraph\" style=\"orphans: 4;margin-bottom: 0.5rem;white-space-collapse: preserve;\"><span md-inline=\"plain\">MySQL\uff1a5.7.13<\/span><\/p>\n<\/li>\n<\/ul>\n<h1 cid=\"n13\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">1 \u5f15\u5165\u4f9d\u8d56<\/span><\/h1>\n<pre spellcheck=\"false\" lang=\"xml\" cid=\"n14\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>com.baomidou<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>mybatis-plus-boot-starter<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">version<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>3.5.4<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">version<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>mysql<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>mysql-connector-java<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">scope<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>runtime<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">scope<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>com.baomidou<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>dynamic-datasource-spring-boot-starter<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">version<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>3.5.2<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">version<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>org.projectlombok<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">groupId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>lombok<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">artifactId<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">version<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>1.18.30<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">version<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">scope<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span>provided<span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">scope<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">dependency<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h1 cid=\"n15\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">2 \u914d\u7f6e\u6570\u636e\u6e90<\/span><\/h1>\n<pre spellcheck=\"false\" lang=\"yml\" cid=\"n16\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">server<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  port<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span><span style=\"color: rgb(17, 102, 68);\">8090<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">spring<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  datasource<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">   dynamic<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">    primary<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>master    <span style=\"color: rgb(170, 85, 0);\">#\u8bbe\u7f6e\u9ed8\u8ba4\u7684\u6570\u636e\u6e90\u6216\u8005\u6570\u636e\u6e90\u7ec4\uff0c\u9ed8\u8ba4\u503c\u5373\u4e3amaster<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">    strict<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>false     <span style=\"color: rgb(170, 85, 0);\">#\u4e25\u683c\u5339\u914d\u6570\u636e\u6e90\uff0c\u9ed8\u8ba4false\u3002true\u672a\u5339\u914d\u5230\u6307\u5b9a\u6570\u636e\u6e90\u65f6\u629b\u5f02\u5e38\uff0cfalse\u4f7f\u7528\u9ed8\u8ba4\u6570\u636e\u6e90<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">    datasource<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">     master<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      url<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>jdbc<span style=\"color: rgb(85, 85, 85);\">:<\/span>mysql<span style=\"color: rgb(85, 85, 85);\">:<\/span>\/\/127.0.0.1<span style=\"color: rgb(85, 85, 85);\">:<\/span>3306\/test_master?characterEncoding=utf8&amp;serverTimezone=GMT%2B8<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      username<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>root<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      password<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>root<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      driver-class-name<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>com.mysql.cj.jdbc.Driver   <span style=\"color: rgb(170, 85, 0);\">#3.2.0\u5f00\u59cb\u652f\u6301SPI\u53ef\u7701\u7565\u6b64\u914d\u7f6e<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">     slave<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      url<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>jdbc<span style=\"color: rgb(85, 85, 85);\">:<\/span>mysql<span style=\"color: rgb(85, 85, 85);\">:<\/span>\/\/127.0.0.1<span style=\"color: rgb(85, 85, 85);\">:<\/span>3306\/test_slave?characterEncoding=utf8&amp;serverTimezone=GMT%2B8<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      username<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>root<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      password<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>root<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">      driver-class-name<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>com.mysql.cj.jdbc.Driver<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(170, 85, 0);\">#<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">mybatis-plus<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  mapper-locations<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>classpath<span style=\"color: rgb(85, 85, 85);\">:<\/span>mapper\/*.xml<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  type-aliases-package<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>cn.wbnull.springbootdemo.entity<\/span><\/pre>\n<h1 cid=\"n17\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">3 \u4f7f\u7528@DS\u5207\u6362\u6570\u636e\u6e90<\/span><\/h1>\n<p cid=\"n18\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"strong\"><strong>@DS<\/strong><\/span><span md-inline=\"plain\"> \u53ef\u4ee5\u6ce8\u89e3\u5728\u65b9\u6cd5\u4e0a\u6216\u7c7b\u4e0a\uff0c<\/span><span md-inline=\"strong\"><strong>\u540c\u65f6\u5b58\u5728\u5c31\u8fd1\u539f\u5219 \u65b9\u6cd5\u4e0a\u6ce8\u89e3 \u4f18\u5148\u4e8e \u7c7b\u4e0a\u6ce8\u89e3<\/strong><\/span><span md-inline=\"plain\">\u3002<\/span><\/p>\n<figure cid=\"n19\" mdtype=\"table\" style=\"margin-top: 1.2em;margin-bottom: 1.2em;overflow-x: auto;cursor: default;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;text-wrap: wrap;\">\n<table width=\"800\" style=\"width: 578px;\">\n<thead style=\"background-color: rgb(248, 248, 248);\">\n<tr cid=\"n20\" mdtype=\"table_row\" style=\"break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);\">\n<th style=\"padding: 6px 13px;border-top-width: 1px;border-bottom: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229);text-align: left;\"><span cid=\"n21\" mdtype=\"table_cell\" style=\"display: inline-block;min-width: 1ch;width: 202px;min-height: 10px;\"><span md-inline=\"plain\">\u6ce8\u89e3<\/span><\/span><\/th>\n<th style=\"padding: 6px 13px;border-top-width: 1px;border-bottom: 0px;border-top-color: rgb(223, 226, 229);border-right-color: rgb(223, 226, 229);border-left-color: rgb(223, 226, 229);text-align: left;\"><span cid=\"n22\" mdtype=\"table_cell\" style=\"display: inline-block;min-width: 1ch;width: 543.6px;min-height: 10px;\"><span md-inline=\"plain\">\u7ed3\u679c<\/span><\/span><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr cid=\"n23\" mdtype=\"table_row\" style=\"break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);\">\n<td style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n24\" mdtype=\"table_cell\" style=\"display: inline-block;min-width: 1ch;width: 202px;min-height: 10px;\"><span md-inline=\"plain\">\u6ca1\u6709@DS<\/span><\/span><\/td>\n<td style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n25\" mdtype=\"table_cell\" style=\"display: inline-block;min-width: 1ch;width: 543.6px;min-height: 10px;\"><span md-inline=\"plain\">\u9ed8\u8ba4\u6570\u636e\u6e90<\/span><\/span><\/td>\n<\/tr>\n<tr cid=\"n26\" mdtype=\"table_row\" style=\"break-inside: avoid;break-after: auto;border-top: 1px solid rgb(223, 226, 229);background-color: rgb(248, 248, 248);\">\n<td style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n27\" mdtype=\"table_cell\" style=\"display: inline-block;min-width: 1ch;width: 202px;min-height: 10px;\"><span md-inline=\"plain\">@DS(\"dsName\")<\/span><\/span><\/td>\n<td style=\"padding: 6px 13px;border-color: rgb(223, 226, 229);min-width: 32px;\"><span cid=\"n28\" mdtype=\"table_cell\" style=\"display: inline-block;min-width: 1ch;width: 543.6px;min-height: 10px;\"><span md-inline=\"plain\">dsName\u53ef\u4ee5\u4e3a\u7ec4\u540d\u4e5f\u53ef\u4ee5\u4e3a\u5177\u4f53\u67d0\u4e2a\u5e93\u7684\u540d\u79f0<\/span><\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n29\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@DS<\/span>(<span style=\"color: rgb(170, 17, 17);\">\"slave\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Service<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">UserInfoService<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 0, 0);\">UserInfoMapper<\/span> <span style=\"color: rgb(0, 0, 0);\">userInfoMapper<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">List<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">UserInfo<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">query<\/span>() {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(0, 0, 0);\">LambdaQueryWrapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">UserInfo<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">queryWrapper<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(119, 0, 136);\">new<\/span> <span style=\"color: rgb(0, 0, 0);\">LambdaQueryWrapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;&gt;<\/span>();<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(119, 0, 136);\">return<\/span> <span style=\"color: rgb(0, 0, 0);\">userInfoMapper<\/span>.<span style=\"color: rgb(0, 0, 0);\">selectList<\/span>(<span style=\"color: rgb(0, 0, 0);\">queryWrapper<\/span>);<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<h1 cid=\"n30\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 2.25em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.2;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4 \u6d4b\u8bd5<\/span><\/h1>\n<p cid=\"n31\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">\u76f4\u63a5\u4f7f\u7528 <\/span><span md-inline=\"link\"><span md-inline=\"plain\">Spring Boot\u6574\u5408MyBatis\u914d\u7f6e\u591a\u6570\u636e\u6e90<\/span><\/span><span md-inline=\"plain\"> \u4e2d\u521b\u5efa\u7684\u6570\u636e\u5e93\u8868<\/span><\/p>\n<h2 cid=\"n32\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.1 \u65b0\u5efa\u5b9e\u4f53\u7c7b<\/span><\/h2>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n33\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Data<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">User<\/span> <span style=\"color: rgb(119, 0, 136);\">implements<\/span> <span style=\"color: rgb(0, 0, 0);\">Serializable<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(119, 0, 136);\">static<\/span> <span style=\"color: rgb(119, 0, 136);\">final<\/span> <span style=\"color: rgb(0, 136, 85);\">long<\/span> <span style=\"color: rgb(0, 0, 0);\">serialVersionUID<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(17, 102, 68);\">1L<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@TableId<\/span>(<span style=\"color: rgb(0, 0, 0);\">value<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(170, 17, 17);\">\"id\"<\/span>, <span style=\"color: rgb(0, 0, 0);\">type<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(0, 0, 0);\">IdType<\/span>.<span style=\"color: rgb(0, 0, 0);\">AUTO<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 136, 85);\">int<\/span> <span style=\"color: rgb(0, 0, 0);\">id<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 136, 85);\">String<\/span> <span style=\"color: rgb(0, 0, 0);\">name<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n34\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Data<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">UserInfo<\/span> <span style=\"color: rgb(119, 0, 136);\">implements<\/span> <span style=\"color: rgb(0, 0, 0);\">Serializable<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(119, 0, 136);\">static<\/span> <span style=\"color: rgb(119, 0, 136);\">final<\/span> <span style=\"color: rgb(0, 136, 85);\">long<\/span> <span style=\"color: rgb(0, 0, 0);\">serialVersionUID<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(17, 102, 68);\">1L<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@TableId<\/span>(<span style=\"color: rgb(0, 0, 0);\">value<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(170, 17, 17);\">\"id\"<\/span>, <span style=\"color: rgb(0, 0, 0);\">type<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(0, 0, 0);\">IdType<\/span>.<span style=\"color: rgb(0, 0, 0);\">AUTO<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 136, 85);\">Integer<\/span> <span style=\"color: rgb(0, 0, 0);\">id<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@TableField<\/span>(<span style=\"color: rgb(170, 17, 17);\">\"userCode\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 136, 85);\">String<\/span> <span style=\"color: rgb(0, 0, 0);\">userCode<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@TableField<\/span>(<span style=\"color: rgb(170, 17, 17);\">\"userName\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 136, 85);\">String<\/span> <span style=\"color: rgb(0, 0, 0);\">userName<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 136, 85);\">String<\/span> <span style=\"color: rgb(0, 0, 0);\">password<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<p cid=\"n35\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">\u6ce8\uff1a\u8fd9\u91cc\u56e0\u4e3a\u6570\u636e\u5e93\u91cc\u5b57\u6bb5\u662f\u9a7c\u5cf0\u5f0f\u547d\u540d\uff0c\u6240\u4ee5\u4f7f\u7528 <\/span><span md-inline=\"strong\"><strong>@TableField<\/strong><\/span><span md-inline=\"plain\"> \u6307\u5b9a\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u5b57\u6bb5\u540d\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7yml\u914d\u7f6e\u5173\u95ed\u5c5e\u6027\u6620\u5c04<\/span><\/p>\n<pre spellcheck=\"false\" lang=\"yml\" cid=\"n36\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">mybatis-plus<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  mapper-locations<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>classpath<span style=\"color: rgb(85, 85, 85);\">:<\/span>mapper\/*.xml<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  type-aliases-package<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span>cn.wbnull.springbootdemo.entity<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">  configuration<\/span><span style=\"color: rgb(85, 85, 85);\">:<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(34, 17, 153);\">   map-underscore-to-camel-case<\/span><span style=\"color: rgb(85, 85, 85);\">: <\/span><span style=\"color: rgb(119, 0, 136);\">false<\/span><\/span><\/pre>\n<h2 cid=\"n37\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.2 \u65b0\u5efaMapper<\/span><\/h2>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n38\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Repository<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">interface<\/span> <span style=\"color: rgb(0, 0, 255);\">UserMapper<\/span> <span style=\"color: rgb(119, 0, 136);\">extends<\/span> <span style=\"color: rgb(0, 0, 0);\">BaseMapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">User<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n39\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Repository<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">interface<\/span> <span style=\"color: rgb(0, 0, 255);\">UserInfoMapper<\/span> <span style=\"color: rgb(119, 0, 136);\">extends<\/span> <span style=\"color: rgb(0, 0, 0);\">BaseMapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">UserInfo<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n40\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.3 \u65b0\u5efa\u6620\u5c04\u6587\u4ef6<\/span><\/h2>\n<pre spellcheck=\"false\" lang=\"xml\" cid=\"n41\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">&lt;?xml<\/span> <span style=\"color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">&lt;!DOCTYPE mapper PUBLIC \"-\/\/mybatis.org\/\/DTD Mapper 3.0\/\/EN\" \"http:\/\/mybatis.org\/dtd\/mybatis-3-mapper.dtd\"&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">mapper<\/span> <span style=\"color: rgb(0, 0, 204);\">namespace<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.mapper.UserMapper\"<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(170, 85, 0);\">&lt;!-- \u901a\u7528\u67e5\u8be2\u6620\u5c04\u7ed3\u679c --&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">resultMap<\/span> <span style=\"color: rgb(0, 0, 204);\">id<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"BaseResultMap\"<\/span> <span style=\"color: rgb(0, 0, 204);\">type<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.entity.User\"<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">id<\/span> <span style=\"color: rgb(0, 0, 204);\">column<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"id\"<\/span> <span style=\"color: rgb(0, 0, 204);\">property<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"id\"<\/span><span style=\"color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">result<\/span> <span style=\"color: rgb(0, 0, 204);\">column<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"name\"<\/span> <span style=\"color: rgb(0, 0, 204);\">property<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"name\"<\/span><span style=\"color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">resultMap<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(170, 85, 0);\">&lt;!-- \u901a\u7528\u67e5\u8be2\u7ed3\u679c\u5217 --&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">sql<\/span> <span style=\"color: rgb(0, 0, 204);\">id<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"Base_Column_List\"<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">     id, name<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">sql<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">mapper<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<pre spellcheck=\"false\" lang=\"xml\" cid=\"n42\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">&lt;?xml<\/span> <span style=\"color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">&lt;!DOCTYPE mapper PUBLIC \"-\/\/mybatis.org\/\/DTD Mapper 3.0\/\/EN\" \"http:\/\/mybatis.org\/dtd\/mybatis-3-mapper.dtd\"&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">mapper<\/span> <span style=\"color: rgb(0, 0, 204);\">namespace<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.mapper.UserInfoMapper\"<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(170, 85, 0);\">&lt;!-- \u901a\u7528\u67e5\u8be2\u6620\u5c04\u7ed3\u679c --&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">resultMap<\/span> <span style=\"color: rgb(0, 0, 204);\">id<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"BaseResultMap\"<\/span> <span style=\"color: rgb(0, 0, 204);\">type<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.entity.UserInfo\"<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">id<\/span> <span style=\"color: rgb(0, 0, 204);\">column<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"id\"<\/span> <span style=\"color: rgb(0, 0, 204);\">property<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"id\"<\/span><span style=\"color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">result<\/span> <span style=\"color: rgb(0, 0, 204);\">column<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"userCode\"<\/span> <span style=\"color: rgb(0, 0, 204);\">property<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"userCode\"<\/span><span style=\"color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">result<\/span> <span style=\"color: rgb(0, 0, 204);\">column<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"userName\"<\/span> <span style=\"color: rgb(0, 0, 204);\">property<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"userName\"<\/span><span style=\"color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">result<\/span> <span style=\"color: rgb(0, 0, 204);\">column<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"password\"<\/span> <span style=\"color: rgb(0, 0, 204);\">property<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"password\"<\/span><span style=\"color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">resultMap<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(170, 85, 0);\">&lt;!-- \u901a\u7528\u67e5\u8be2\u7ed3\u679c\u5217 --&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;<\/span><span style=\"color: rgb(17, 119, 0);\">sql<\/span> <span style=\"color: rgb(0, 0, 204);\">id<\/span>=<span style=\"color: rgb(170, 17, 17);\">\"Base_Column_List\"<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">     id, userCode, userName, password<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">sql<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(17, 119, 0);\">&lt;\/<\/span><span style=\"color: rgb(17, 119, 0);\">mapper<\/span><span style=\"color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 cid=\"n43\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.4 \u65b0\u5efaService<\/span><\/h2>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n44\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Service<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">UserService<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 0, 0);\">UserMapper<\/span> <span style=\"color: rgb(0, 0, 0);\">userMapper<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">List<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">User<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">query<\/span>() {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(0, 0, 0);\">LambdaQueryWrapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">User<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">queryWrapper<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(119, 0, 136);\">new<\/span> <span style=\"color: rgb(0, 0, 0);\">LambdaQueryWrapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;&gt;<\/span>();<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(119, 0, 136);\">return<\/span> <span style=\"color: rgb(0, 0, 0);\">userMapper<\/span>.<span style=\"color: rgb(0, 0, 0);\">selectList<\/span>(<span style=\"color: rgb(0, 0, 0);\">queryWrapper<\/span>);<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n45\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(170, 85, 0);\">\/**<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"> <span style=\"color: rgb(170, 85, 0);\">* 3\u4f7f\u7528@DS\u5207\u6362\u6570\u636e\u6e90 \u4e2d\u5df2\u5c55\u793a\u8fc7\u8be5\u7c7b<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"> <span style=\"color: rgb(170, 85, 0);\">*\/<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@DS<\/span>(<span style=\"color: rgb(170, 17, 17);\">\"slave\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@Service<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">UserInfoService<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">private<\/span> <span style=\"color: rgb(0, 0, 0);\">UserInfoMapper<\/span> <span style=\"color: rgb(0, 0, 0);\">userInfoMapper<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">List<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">UserInfo<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">query<\/span>() {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(0, 0, 0);\">LambdaQueryWrapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">UserInfo<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">queryWrapper<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(119, 0, 136);\">new<\/span> <span style=\"color: rgb(0, 0, 0);\">LambdaQueryWrapper<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;&gt;<\/span>();<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(119, 0, 136);\">return<\/span> <span style=\"color: rgb(0, 0, 0);\">userInfoMapper<\/span>.<span style=\"color: rgb(0, 0, 0);\">selectList<\/span>(<span style=\"color: rgb(0, 0, 0);\">queryWrapper<\/span>);<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n46\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.5 \u65b0\u5efaController<\/span><\/h2>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n47\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@RestController<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span style=\"color: rgb(170, 17, 17);\">\"user\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">UserController<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">UserService<\/span> <span style=\"color: rgb(0, 0, 0);\">userService<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span style=\"color: rgb(0, 0, 0);\">value<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(170, 17, 17);\">\"query\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">List<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">User<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">query<\/span>() {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(119, 0, 136);\">return<\/span> <span style=\"color: rgb(0, 0, 0);\">userService<\/span>.<span style=\"color: rgb(0, 0, 0);\">query<\/span>();<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<pre spellcheck=\"false\" lang=\"java\" cid=\"n48\" mdtype=\"fences\" style=\"overflow: visible;font-family: var(--monospace);font-size: 0.9em;break-inside: avoid;text-align: left;white-space: normal;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;background-color: rgb(248, 248, 248);border-width: 1px;border-style: solid;border-color: rgb(231, 234, 237);border-radius: 3px;padding-top: 8px;padding-right: 4px;padding-bottom: 6px;margin-bottom: 15px;margin-top: 15px;width: inherit;color: rgb(51, 51, 51);letter-spacing: normal;\"><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@RestController<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span style=\"color: rgb(170, 17, 17);\">\"userInfo\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(119, 0, 136);\">class<\/span> <span style=\"color: rgb(0, 0, 255);\">UserInfoController<\/span> {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@Autowired<\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">UserInfoService<\/span> <span style=\"color: rgb(0, 0, 0);\">userInfoService<\/span>;<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\"><span cm-text=\"\"><\/span><\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span style=\"color: rgb(0, 0, 0);\">value<\/span> <span style=\"color: rgb(152, 26, 26);\">=<\/span> <span style=\"color: rgb(170, 17, 17);\">\"query\"<\/span>)<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">  <span style=\"color: rgb(119, 0, 136);\">public<\/span> <span style=\"color: rgb(0, 0, 0);\">List<\/span><span style=\"color: rgb(152, 26, 26);\">&lt;<\/span><span style=\"color: rgb(0, 0, 0);\">UserInfo<\/span><span style=\"color: rgb(152, 26, 26);\">&gt;<\/span> <span style=\"color: rgb(0, 0, 0);\">query<\/span>() {<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">    <span style=\"color: rgb(119, 0, 136);\">return<\/span> <span style=\"color: rgb(0, 0, 0);\">userInfoService<\/span>.<span style=\"color: rgb(0, 0, 0);\">query<\/span>();<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">   }<\/span><span role=\"presentation\" style=\"padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n49\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.75em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.225;cursor: text;padding-bottom: 0.3em;border-bottom: 1px solid rgb(238, 238, 238);white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.6 \u6d4b\u8bd5<\/span><\/h2>\n<p cid=\"n50\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">\u4f7f\u7528Postman\u6d4b\u8bd5\uff0c\u8f93\u51fa\u7ed3\u679c\u5982\u4e0b<\/span><\/p>\n<h3 cid=\"n51\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.6.1 master select<\/span><\/h3>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100000490\" data-ratio=\"1.58560794044665\" data-s=\"300,640\"  data-type=\"png\" data-w=\"403\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152835801.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100000490\" data-ratio=\"1.58560794044665\" data-s=\"300,640\"  data-type=\"png\" data-w=\"403\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152835801.png\"><\/noscript><\/p>\n<h3 cid=\"n53\" mdtype=\"heading\" style=\"break-after: avoid-page;break-inside: avoid;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">4.6.2 slave select<\/span><\/h3>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg lazyload\" data-imgfileid=\"100000491\" data-ratio=\"1.899749373433584\" data-s=\"300,640\"  data-type=\"png\" data-w=\"399\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152837745.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg\" data-imgfileid=\"100000491\" data-ratio=\"1.899749373433584\" data-s=\"300,640\"  data-type=\"png\" data-w=\"399\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152837745.png\"><\/noscript><\/p>\n<hr style=\"box-sizing: content-box;height: 2px;margin-top: 16px;margin-bottom: 16px;border-width: 0px;border-style: none;border-color: initial;background-color: rgb(231, 231, 231);\"  \/>\n<p cid=\"n56\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">CSDN\uff1a<\/span><span md-inline=\"link\"><span md-inline=\"plain\">https:\/\/blog.csdn.net\/dkbnull\/article\/details\/136611367<\/span><\/span><\/p>\n<p cid=\"n60\" mdtype=\"paragraph\" style=\"orphans: 4;margin-top: 0.8em;margin-bottom: 0.8em;white-space: pre-wrap;color: rgb(51, 51, 51);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;letter-spacing: normal;text-align: start;\"><span md-inline=\"plain\">\u77e5\u4e4e\uff1a<\/span><span md-inline=\"link\"><span md-inline=\"plain\">https:\/\/zhuanlan.zhihu.com\/p\/686275755<\/span><\/span><\/p>\n<hr style=\"box-sizing: content-box;height: 2px;margin-top: 16px;margin-bottom: 16px;border-width: 0px;border-style: none;border-color: initial;background-color: rgb(231, 231, 231);\"  \/>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 \u7a0b\u5e8f\u5458null              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u6587\u7ae0\u4e2d\u4ee3\u7801\u4e0d\u4fbf\u4e8e\u9605\u8bfb\uff0c\u8bf7\u4f7f\u7528\u7535\u8111\u67e5\u770b\u6216\u70b9\u51fb\u9605\u8bfb\u539f\u6587\u3002 \u5728 Spring Boot\u6574\u5408MyBatis\u914d\u7f6e\u591a\u6570\u636e\u6e90 \u6587\u7ae0\u4e2d\uff0c\u5c55\u793a\u4e86 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4312,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[33,7],"tags":[],"class_list":["post-4317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mybatis","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152830282-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152835801.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152830282-300x127.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152830282-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152835801.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152830282-300x127.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152830282-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152830282.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152835801.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152835801.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152837745.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524152837745.png","id":"image3"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Mybatis","post_date":"2024-03-10","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":423,"next_post_id":4307,"next_post_title":"Spring Boot\u6574\u5408Spring Security","previous_post_id":4330,"previous_post_title":"Spring Boot\u6574\u5408Mybatis\u914d\u7f6e\u591a\u6570\u636e\u6e90","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4317","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=4317"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4317\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4312"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}