{"id":4395,"date":"2019-02-15T08:59:51","date_gmt":"2019-02-15T00:59:51","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e5%ae%9e%e6%88%98%ef%bc%9a%e6%95%b4%e5%90%88mybatis%e8%bf%9e%e6%8e%a5%e6%95%b0%e6%8d%ae%e5%ba%93\/"},"modified":"2019-02-15T08:59:51","modified_gmt":"2019-02-15T00:59:51","slug":"spring-boot%e5%ae%9e%e6%88%98%ef%bc%9a%e6%95%b4%e5%90%88mybatis%e8%bf%9e%e6%8e%a5%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/spring-boot%e5%ae%9e%e6%88%98%ef%bc%9a%e6%95%b4%e5%90%88mybatis%e8%bf%9e%e6%8e%a5%e6%95%b0%e6%8d%ae%e5%ba%93\/","title":{"rendered":"Spring Boot\u5b9e\u6218\uff1a\u6574\u5408MyBatis\u8fde\u63a5\u6570\u636e\u5e93"},"content":{"rendered":"<div class='wxsyncmain'>\n<blockquote>\n<h1 cid=\"n0\" mdtype=\"heading\" class=\"md-end-block md-heading md-focus\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span style=\"color: rgb(178, 178, 178);\">\u5982\u679c\u6559\u7a0b\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<\/blockquote>\n<h1 cid=\"n0\" mdtype=\"heading\" class=\"md-end-block md-heading md-focus\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" class=\"md-expand\" style=\"box-sizing: border-box;\">0. \u5f00\u53d1\u73af\u5883<\/span><\/h1>\n<ul class=\"ul-list list-paddingleft-2\" cid=\"n198\" mdtype=\"list\" data-mark=\"*\" style=\"\">\n<li>\n<p cid=\"n201\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.5rem;margin-bottom: 0.5rem;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n202\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">IDE\uff1aIntelliJ IDEA 2017.1 x64<\/span><\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n208\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.5rem;margin-bottom: 0.5rem;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n203\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">jdk\uff1a1.8.0_91<\/span><\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n215\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.5rem;margin-bottom: 0.5rem;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n210\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">Spring Boot\uff1a2.1.1.RELEASE<\/span><\/span><\/p>\n<\/li>\n<li>\n<p cid=\"n222\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.5rem;margin-bottom: 0.5rem;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n217\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">Maven\uff1a3.3.9<\/span><\/span><\/p>\n<\/li>\n<\/ul>\n<p cid=\"n271\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.5rem;margin-bottom: 0.5rem;width: inherit;\"><span class=\"md-line md-end-block md-focus\" cid=\"n266\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<h1 cid=\"n0\" mdtype=\"heading\" class=\"md-end-block md-heading md-focus\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" class=\"md-expand\" style=\"box-sizing: border-box;\">1. \u5f15\u5165\u4f9d\u8d56<\/span><\/h1>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"xml\" cid=\"n2\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">dependency<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>org.mybatis.spring.boot<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>mybatis-spring-boot-starter<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>1.3.2<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">dependency<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">dependency<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>mysql<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>mysql-connector-java<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>8.0.15<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">scope<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>runtime<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">scope<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">dependency<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<p cid=\"n3\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n4\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u8fd9\u91cc\uff0c\u5982\u679c\u4f7f\u7528\u7684 MySQL \u662f 8.X\u7248\u672c\u7684\u8bdd\uff0cmysql-connector-java \u7248\u672c\u5fc5\u987b\u662f 8.0\u4ee5\u4e0a\uff0c\u5426\u5219\u4f1a\u62a5\u9519\uff1a<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n5\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">sql<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">SQLException<\/span>: <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Unable<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">to<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">load<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">authentication<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">plugin<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">'caching_sha2_password'<\/span><\/span><\/pre>\n<p cid=\"n6\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n7\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<h1 cid=\"n8\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2. \u5f15\u5165\u6570\u636e\u6e90<\/span><\/h1>\n<p cid=\"n9\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n10\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">application.yml \u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u4fe1\u606f<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"yml\" cid=\"n11\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">spring:<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> datasource:<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  url: jdbc:mysql:\/\/127.0.0.1:3306\/test?serverTimezone=GMT%2B8<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  username: root<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  password: root<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  driver-class-name: com.mysql.cj.jdbc.Driver<\/span><\/pre>\n<p cid=\"n12\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n13\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u8fd9\u91cc\uff0c\u5982\u679c\u4f7f\u7528\u7684 mysql-connector-java \u662f5.X\u7248\u672c\u7684\u8bdd\uff0cdriver-class-name \u53ef\u4ee5\u76f4\u63a5\u7701\u7565\u4f7f\u7528\u9ed8\u8ba4\uff0c\u6216\u8005\u914d\u7f6e\u4e3a com.mysql.jdbc.Driver<\/span><\/span><span class=\"md-line md-end-block\" cid=\"n13\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/p>\n<p cid=\"n16\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n17\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u5230\u8fd9\u91cc\uff0cSpring Boot\u5c31\u53ef\u4ee5\u8bbf\u95ee\u6570\u636e\u5e93\u4e86\uff0c\u6211\u4eec\u6765\u505a\u4e0b\u6d4b\u8bd5\u3002<\/span><\/span><\/p>\n<p cid=\"n18\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n19\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<h1 cid=\"n20\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">3. \u6d4b\u8bd5<\/span><\/h1>\n<h2 cid=\"n21\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.1 \u65b0\u5efa\u6570\u636e\u5e93\u8868<\/span><\/h2>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"sql\" cid=\"n22\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">CREATE<\/span> SCHEMA `test` ;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">CREATE<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">TABLE<\/span> `test`.`test` (<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> `id` <span class=\"cm-builtin\" style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">INT<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">NOT<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">NULL<\/span> AUTO_INCREMENT,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> `name` <span class=\"cm-builtin\" style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">VARCHAR<\/span>(<span class=\"cm-number\" style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">45<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">NOT<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">NULL<\/span>,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> PRIMARY KEY (`id`));<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INSERT<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INTO<\/span> `test`.`test` (`name`) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">VALUES<\/span> (<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">'\u5f20\u4e09'<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INSERT<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INTO<\/span> `test`.`test` (`name`) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">VALUES<\/span> (<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">'\u674e\u56db'<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INSERT<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INTO<\/span> `test`.`test` (`name`) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">VALUES<\/span> (<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">'\u738b\u4e94'<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INSERT<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">INTO<\/span> `test`.`test` (`name`) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">VALUES<\/span> (<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">'\u5468\u516d'<\/span>);<\/span><\/pre>\n<h2 cid=\"n23\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.2 \u521b\u5efa\u5b9e\u4f53<\/span><\/h2>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n24\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">TestModel<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getId<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setId<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">this<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getName<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setName<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">this<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n25\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.3 DAO\u5c42<\/span><\/h2>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n26\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">dao<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ibatis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotations<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Insert<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ibatis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotations<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Mapper<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ibatis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotations<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Param<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">apache<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">ibatis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotations<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Select<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Mapper<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">interface<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">TestMapper<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Select<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"select id,name from test\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>();<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Insert<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"insert into test(name) values(#{name})\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Param<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"name\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n27\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.4 Service\u5c42<\/span><\/h2>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n28\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">dao<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestMapper<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">stereotype<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Service<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">MySQLTestService<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestMapper<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testMapper<\/span>; <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">\/\/\u8fd9\u91cc\u4f1a\u6709\u62a5\u9519\uff0c\u4e0d\u7528\u7ba1<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testMapper<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testMapper<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n29\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.5 Controller\u5c42<\/span><\/h2>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n30\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">controller<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MySQLTestService<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">context<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Scope<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PostMapping<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestMapping<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestParam<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RestController<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RestController<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Scope<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"prototype\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/mysql\/test\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">MySQLTestController<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MySQLTestService<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestService<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/select\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>() <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestService<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/insert\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"name\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestService<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n31\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.6 \u6d4b\u8bd5<\/span><\/h2>\n<p cid=\"n32\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n33\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u4f7f\u7528Postman\u8fdb\u884c\u6d4b\u8bd5\uff0c\u8f93\u51fa\u7ed3\u679c\u5982\u4e0b<\/span><\/span><\/p>\n<h3 cid=\"n34\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3.6.1 select<\/span><\/h3>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.8053435114503816\" data-s=\"300,640\"  data-type=\"png\" data-w=\"524\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153359688.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.8053435114503816\" data-s=\"300,640\"  data-type=\"png\" data-w=\"524\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153359688.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 1.5em;font-weight: bold;text-align: start;white-space: pre-wrap;\">3.6.2 insert<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.5744\" data-s=\"300,640\"  data-type=\"png\" data-w=\"625\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153400873.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.5744\" data-s=\"300,640\"  data-type=\"png\" data-w=\"625\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153400873.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">Postman\u63a5\u6536\u5230\u8f93\u51fa\u4e3a1\uff0c\u8868\u793a\u6210\u529f\uff0c\u6211\u4eec\u53bb\u67e5\u4e0b\u6570\u636e\u5e93<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.7521367521367521\" data-s=\"300,640\"  data-type=\"png\" data-w=\"351\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153402212.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.7521367521367521\" data-s=\"300,640\"  data-type=\"png\" data-w=\"351\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153402212.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">\u6570\u636e\u6210\u529f\u63d2\u5165\u3002<\/span><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><\/span><\/p>\n<p cid=\"n46\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n47\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<h1 cid=\"n48\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4. MyBatis\u6620\u5c04\u6587\u4ef6<\/span><\/h1>\n<p cid=\"n49\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n50\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u4ee5\u4e0a\uff0c\u6211\u4eec\u8bbf\u95ee\u6570\u636e\u5e93\u65f6\uff0cSQL\u8bed\u53e5\u8fd8\u662f\u5199\u6b7b\u5728\u4ee3\u7801\u91cc\u9762\uff0c\u5904\u7406\u8d77\u6765\u5e76\u6ca1\u6709\u5f88\u65b9\u4fbf\u3002\u901a\u5e38\uff0c\u6211\u4eec\u628aSQL\u8bed\u53e5\u4e0e\u4ee3\u7801\u5206\u79bb\uff0c\u4f7f\u7528MyBatis\u6620\u5c04\u6587\u4ef6\u65b9\u5f0f\u6765\u8bbf\u95ee\u6570\u636e\u5e93\u3002<\/span><\/span><\/p>\n<h2 cid=\"n51\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.1 MyBatis\u914d\u7f6e<\/span><\/h2>\n<p cid=\"n52\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n53\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u6211\u4eec\u5728resources\u6587\u4ef6\u5939\u4e0b\u65b0\u5efamapper\u6587\u4ef6\u5939\uff0c\u7528\u4e8e\u5b58\u653eMyBatis\u6620\u5c04\u6587\u4ef6<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.7461300309597523\" data-s=\"300,640\"  data-type=\"png\" data-w=\"323\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153403390.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.7461300309597523\" data-s=\"300,640\"  data-type=\"png\" data-w=\"323\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153403390.png\"  \/><\/noscript><\/p>\n<p cid=\"n52\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n53\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/p>\n<p cid=\"n56\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n57\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">application.yml \u589e\u52a0MyBatis\u914d\u7f6e\u4fe1\u606f<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"yml\" cid=\"n58\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">mybatis:<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> mapper-locations: classpath:mapper\/*.xml #\u5bf9\u5e94mapper\u6620\u5c04xml\u6587\u4ef6\u6240\u5728\u8def\u5f84<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> type-aliases-package: cn.wbnull.springbootdemo.model #\u5bf9\u5e94\u5b9e\u4f53\u7c7b\u8def\u5f84<\/span><\/pre>\n<p cid=\"n59\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n60\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u5b8c\u6574\u914d\u7f6e\u5982\u4e0b\uff0c\u6ce8\u610fspring\u4e0emybatis\u90fd\u662f\u6839\u8282\u70b9<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"yml\" cid=\"n61\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">spring:<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> datasource:<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  url: jdbc:mysql:\/\/127.0.0.1:3306\/test?serverTimezone=GMT%2B8<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  username: root<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  password: root<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  driver-class-name: com.mysql.cj.jdbc.Driver<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">#<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">mybatis:<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> mapper-locations: classpath:mapper\/*.xml #\u5bf9\u5e94mapper\u6620\u5c04xml\u6587\u4ef6\u6240\u5728\u8def\u5f84<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> type-aliases-package: cn.wbnull.springbootdemo.model #\u5bf9\u5e94\u5b9e\u4f53\u7c7b\u8def\u5f84<\/span><\/pre>\n<h2 cid=\"n62\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.2 DAO\u5c42<\/span><\/h2>\n<p cid=\"n63\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n64\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u65b0\u7684DAO\u7c7b<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n65\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">dao<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">interface<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">TestMapperV2<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>();<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testModel<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n66\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.3 \u521b\u5efaMyBatis\u6620\u5c04\u6587\u4ef6<\/span><\/h2>\n<p cid=\"n67\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n68\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">resources\/mapper\u4e0b\u65b0\u5efa\u6620\u5c04\u6587\u4ef6 <\/span><span md-inline=\"strong\" class=\"\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">TestMapper.xml<\/strong><\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"xml\" cid=\"n69\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">&lt;?xml<\/span> <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\" ?&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;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=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">mapper<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">namespace<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.dao.TestMapperV2\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">resultMap<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"BaseResultMap\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.model.TestModel\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">id<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">column<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">property<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">jdbcType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"INTEGER\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">result<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">column<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"name\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">property<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"name\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">jdbcType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"VARCHAR\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">resultMap<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">sql<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"Base_Column_List\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    id, name<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">sql<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">select<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"select\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">resultMap<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"BaseResultMap\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    select<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">include<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">refid<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"Base_Column_List\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    from test<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">select<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">insert<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"insert\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">parameterType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.model.TestModel\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    insert into test (id, name<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    )<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    )<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">insert<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">mapper<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<p cid=\"n70\" mdtype=\"paragraph\" class=\"\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n71\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" class=\"\" style=\"box-sizing: border-box;\">\u8fd9\u91cc\u7740\u91cd\u6ce8\u610f\u8fd9\u51e0\u70b9<\/span><\/span><\/p>\n<blockquote cid=\"n72\" mdtype=\"blockquote\" style=\"box-sizing: border-box;margin-top: 0.8em;margin-bottom: 0.8em;border-left-width: 4px;border-left-color: rgb(221, 221, 221);padding-right: 15px;padding-left: 15px;color: rgb(119, 119, 119);font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">\n<p cid=\"n73\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n74\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">1\u3001<\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">mapper namespace=\"cn.wbnull.springbootdemo.dao.TestMapperV2\"&gt; namespace \u4e00\u5b9a\u8981\u5bf9\u5e94\u81ea\u5df1dao\u5305\u6240\u5728\u7684\u5305\u8def\u5f84\uff0c\u5bf9\u5e94\u6211\u4eec\u9700\u8981\u5339\u914d\u7684dao\u5c42\u7c7b<\/span><\/span><\/p>\n<p cid=\"n75\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n76\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2\u3001<\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">resultMap id=\"BaseResultMap\" type=\"cn.wbnull.springbootdemo.model.TestModel\"&gt; type \u4e00\u5b9a\u8981\u5bf9\u5e94\u6211\u4eec\u9700\u8981\u5339\u914d\u7684\u5b9e\u4f53\u7c7b<\/span><\/span><\/p>\n<p cid=\"n77\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n78\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3\u3001  <\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">id column=\"id\" property=\"id\" jdbcType=\"INTEGER\"\/&gt; <\/span><span md-inline=\"linebreak\" style=\"box-sizing: border-box;\"> <\/span><\/span><\/p>\n<p cid=\"n79\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n80\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\t <\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">result column=\"name\" property=\"name\" jdbcType=\"VARCHAR\"\/&gt;<\/span><\/span><\/p>\n<p cid=\"n81\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n82\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u5bf9\u5e94\u6570\u636e\u5e93\u8868\u7684\u5b57\u6bb5<\/span><\/span><\/p>\n<p cid=\"n83\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n84\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4\u3001<\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">select id=\"select\" resultMap=\"BaseResultMap\"&gt;<\/span><\/span><\/p>\n<p cid=\"n85\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n86\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">      select  <\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">include refid=\"Base_Column_List\"\/&gt;  from test<\/span><\/span><\/p>\n<p cid=\"n87\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n88\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">  <\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\/select&gt;<\/span><\/span><\/p>\n<p cid=\"n89\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n90\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">select&gt; \u8868\u793a\u8fd9\u662f\u4e00\u6761\u67e5\u8be2\u8bed\u53e5\uff0c id=\"select\"\u4e00\u5b9a\u8981\u4e0edao\u5c42\u9700\u8981\u5339\u914d\u7684\u65b9\u6cd5\u540d\u4e00\u81f4\uff0cresultMap \u8868\u793a\u5bf9\u5e94\u7684\u8fd4\u56de\u503c\u7c7b\u578b<\/span><\/span><\/p>\n<p cid=\"n91\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;width: inherit;\"><span class=\"md-line md-end-block\" cid=\"n92\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5\u3001<\/span><span md-inline=\"escape\" style=\"box-sizing: border-box;\">&lt;<\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">insert id=\"insert\" parameterType=\"cn.wbnull.springbootdemo.model.TestModel\"&gt; parameterType\u8868\u793a\u5bf9\u5e94\u7684\u8f93\u5165\u53c2\u6570\u7c7b\u578b<\/span><\/span><\/p>\n<\/blockquote>\n<h2 cid=\"n93\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.4 Service\u5c42<\/span><\/h2>\n<p cid=\"n94\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n95\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Service\u7c7b<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n96\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">dao<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestMapperV2<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">stereotype<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Service<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">MySQLTestServiceV2<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestMapperV2<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testMapperV2<\/span>; <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">\/\/\u8fd9\u91cc\u4f1a\u6709\u62a5\u9519\uff0c\u4e0d\u7528\u7ba1<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testMapperV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>, <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testModel<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testModel<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setId<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testModel<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setName<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testMapperV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testModel<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n97\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.5 Controller\u5c42<\/span><\/h2>\n<p cid=\"n98\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n99\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Controller\u7c7b<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n100\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">controller<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MySQLTestServiceV2<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">context<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Scope<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PostMapping<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestMapping<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestParam<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RestController<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">java<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">util<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RestController<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Scope<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"prototype\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/mysql\/test\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">MySQLTestControllerV2<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MySQLTestServiceV2<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestServiceV2<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/selectV2\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">List<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&lt;<\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestModel<\/span><span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">&gt;<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>() <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestServiceV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">select<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/insertV2\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">           <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"name\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestServiceV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">name<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n101\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.6 \u9879\u76ee\u542f\u52a8\u7c7b<\/span><\/h2>\n<p cid=\"n102\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n103\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u589e\u52a0@MapperScan(\"cn.wbnull.springbootdemo.dao\")\uff0c\u5bf9\u5e94DAO\u5c42\u7684\u5305\u540d<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n104\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mybatis<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">spring<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MapperScan<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">boot<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">SpringApplication<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">boot<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">autoconfigure<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">SpringBootApplication<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@SpringBootApplication<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@MapperScan<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.dao\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">SpringBootDemoApplication<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">static<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">main<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span>[] <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">args<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">SpringApplication<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">run<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">SpringBootDemoApplication<\/span>.<span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">args<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span>}<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h2 cid=\"n107\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.7 \u6d4b\u8bd5<\/span><\/h2>\n<h3 cid=\"n108\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4.7.1 select<\/span><\/h3>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.9917184265010351\" data-s=\"300,640\"  data-type=\"png\" data-w=\"483\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153404871.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.9917184265010351\" data-s=\"300,640\"  data-type=\"png\" data-w=\"483\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153404871.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 1.5em;font-weight: bold;text-align: start;white-space: pre-wrap;\">4.7.2 insert<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.6183986371379898\" data-s=\"300,640\"  data-type=\"png\" data-w=\"587\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153406243.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.6183986371379898\" data-s=\"300,640\"  data-type=\"png\" data-w=\"587\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153406243.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">Postman\u63a5\u6536\u5230\u8f93\u51fa\u4e3a1\uff0c\u8868\u793a\u6210\u529f\uff0c\u6211\u4eec\u53bb\u67e5\u4e0b\u6570\u636e\u5e93<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.760806916426513\" data-s=\"300,640\"  data-type=\"png\" data-w=\"347\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153408612.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.760806916426513\" data-s=\"300,640\"  data-type=\"png\" data-w=\"347\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153408612.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">\u6570\u636e\u6210\u529f\u63d2\u5165<\/span><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><\/span><\/p>\n<p cid=\"n122\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n123\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u622a\u81f3\u8fd9\u91cc\uff0cSpring Boot\u5df2\u6210\u529f\u6574\u5408MyBatis\u5e76\u8fde\u63a5\u4e0a\u4e86\u6570\u636e\u5e93\uff0c\u4e14\u6d4b\u8bd5\u6b63\u5e38\u3002<\/span><\/span><\/p>\n<p cid=\"n124\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n125\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<p cid=\"n126\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n127\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u4f46\u6211\u4eec\u5b9e\u9645\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u5982\u679c\u5b58\u5728\u5927\u91cf\u6570\u636e\u5e93\u8868\uff0c\u90a3\u6211\u4eec\u5c31\u9700\u8981\u521b\u5efa\u5927\u91cf\u7684\u5b9e\u4f53\u7c7b\u3001DAO\u5c42\u3001\u6620\u5c04\u6587\u4ef6\uff0c\u5de5\u4f5c\u91cf\u8f83\u5927\u3002\u6211\u4eec\u4f7f\u7528mybatis generator\u6765\u81ea\u52a8\u751f\u6210\u4ee3\u7801\u3002<\/span><\/span><\/p>\n<p cid=\"n128\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n129\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<h1 cid=\"n130\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5. Generator<\/span><\/h1>\n<h2 cid=\"n131\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.1 \u65b0\u5efa\u6570\u636e\u5e93\u8868<\/span><\/h2>\n<p cid=\"n132\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n133\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u6211\u4eec\u5148\u65b0\u5efa\u4e00\u4e2a\u6570\u636e\u5e93\u8868\uff0c\u4fbf\u4e8e\u4e00\u4f1a\u81ea\u52a8\u751f\u6210\u4ee3\u7801\u4f7f\u7528<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"sql\" cid=\"n134\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">CREATE<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">TABLE<\/span> `test`.`testv2` (<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> `id` <span class=\"cm-builtin\" style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">INT<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">NOT<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">NULL<\/span> AUTO_INCREMENT,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> `username` <span class=\"cm-builtin\" style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">VARCHAR<\/span>(<span class=\"cm-number\" style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">45<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">NOT<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">NULL<\/span>,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> `password` <span class=\"cm-builtin\" style=\"box-sizing: border-box;color: rgb(51, 0, 170);\">VARCHAR<\/span>(<span class=\"cm-number\" style=\"box-sizing: border-box;color: rgb(17, 102, 68);\">45<\/span>) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">NOT<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">NULL<\/span>,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> PRIMARY KEY (`id`));<\/span><\/pre>\n<h2 cid=\"n135\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.2 Generator\u914d\u7f6e\u6587\u4ef6<\/span><\/h2>\n<p cid=\"n136\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n137\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u5728resources\u6587\u4ef6\u5939\u4e0b\u65b0\u5efagenerator\u6587\u4ef6\u5939\uff0c<span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">generator\u4e0b<\/span>\u65b0\u5efageneratorConfig.xml<\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"xml\" cid=\"n138\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">&lt;?xml<\/span> <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">&lt;!DOCTYPE generatorConfiguration<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">PUBLIC \"-\/\/mybatis.org\/\/DTD MyBatis Generator Configuration 1.0\/\/EN\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">\"http:\/\/mybatis.org\/dtd\/mybatis-generator-config_1_0.dtd\"&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">generatorConfiguration<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u6570\u636e\u5e93\u9a71\u52a8\uff0c\u9009\u62e9\u672c\u5730\u786c\u76d8\u4e0a\u7684\u6570\u636e\u5e93\u9a71\u52a8\u5305\uff0c\u5efa\u8bae\u4e0epom.xml\u5f15\u5165\u7684jar\u5305\u7248\u672c\u76f8\u540c--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">classPathEntry<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">location<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"D:Program FilesMavenrepositorymysqlmysql-connector-java8.0.15mysql-connector-java-8.0.15.jar\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">context<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"DB2Tables\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetRuntime<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"MyBatis3\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">commentGenerator<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"suppressDate\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"true\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u662f\u5426\u53bb\u9664\u81ea\u52a8\u751f\u6210\u7684\u6ce8\u91ca\uff0ctrue\uff1a\u662f false\uff1a\u5426--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"suppressAllComments\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"true\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">commentGenerator<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u6570\u636e\u5e93\u9a71\u52a8\u7c7b\u3001\u94fe\u63a5url\u3001\u7528\u6237\u540d\u3001\u5bc6\u7801\uff0c\u4e0eapplication.yml\u914d\u7f6e\u76f8\u540c\u5373\u53ef--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">jdbcConnection<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">driverClass<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"com.mysql.cj.jdbc.Driver\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">            <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">connectionURL<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"jdbc:mysql:\/\/127.0.0.1:3306\/test?serverTimezone=GMT%2B8\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">            <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">userId<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"root\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">            <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">password<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"root\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">jdbcConnection<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">javaTypeResolver<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"forceBigDecimals\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">javaTypeResolver<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u751f\u6210\u5b9e\u4f53\u7c7b\u7684\u5305\u540d\u548c\u4f4d\u7f6e--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">javaModelGenerator<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetPackage<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.model\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">              <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetProject<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"src\/main\/java\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"enableSubPackages\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"true\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"trimStrings\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"true\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">javaModelGenerator<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u751f\u6210\u6620\u5c04\u6587\u4ef6\u7684\u5305\u540d\u548c\u4f4d\u7f6e--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">sqlMapGenerator<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetPackage<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"mapper\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">             <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetProject<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"src\/main\/resources\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"enableSubPackages\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"true\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">sqlMapGenerator<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u751f\u6210DAO\u7684\u5305\u540d\u548c\u4f4d\u7f6e--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">javaClientGenerator<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"XMLMAPPER\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">               <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetPackage<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.dao\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">               <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">targetProject<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"src\/main\/java\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">      <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">property<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">name<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"enableSubPackages\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">value<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"true\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">javaClientGenerator<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">&lt;!--\u9700\u8981\u81ea\u52a8\u751f\u6210\u4ee3\u7801\u7684\u6570\u636e\u5e93\u8868<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">     <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">tableName\u8868\u793a\u6570\u636e\u5e93\u4e2d\u7684\u8868\u540d\u6216\u89c6\u56fe\u540d domainObjectName\u8868\u793a\u5b9e\u4f53\u7c7b\u540d--&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">table<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">tableName<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"testv2\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">domainObjectName<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"TestV2\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">        <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">enableCountByExample<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">enableUpdateByExample<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">        <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">enableDeleteByExample<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">enableSelectByExample<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">selectByExampleQueryId<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"false\"<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">context<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">generatorConfiguration<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 cid=\"n139\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.3 \u5f15\u5165\u4f9d\u8d56<\/span><\/h2>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"xml\" cid=\"n140\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">plugin<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>org.mybatis.generator<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">groupId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>mybatis-generator-maven-plugin<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">artifactId<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>1.3.2<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">version<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">configuration<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">configurationFile<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>${basedir}\/src\/main\/resources\/generator\/generatorConfig.xml<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">configurationFile<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">overwrite<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>true<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">overwrite<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">verbose<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span>true<span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">verbose<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tab\" role=\"presentation\" cm-text=\"\t\" style=\"box-sizing: border-box;font-family: var(--monospace);display: inline-block;\">  <\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">configuration<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">plugin<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 cid=\"n141\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.4 Generator\u914d\u7f6e<\/span><\/h2>\n<p cid=\"n142\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n143\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">1\u3001Run --&gt; Edit Configurations...<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.5798969072164949\" data-s=\"300,640\"  data-type=\"png\" data-w=\"388\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153410322.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.5798969072164949\" data-s=\"300,640\"  data-type=\"png\" data-w=\"388\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153410322.png\"  \/><\/noscript><\/p>\n<p cid=\"n142\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n143\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/p>\n<p cid=\"n146\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n147\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">2\u3001\u589e\u52a0Maven\u914d\u7f6e<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"1.3532608695652173\" data-s=\"300,640\"  data-type=\"png\" data-w=\"368\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153411693.jpg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"1.3532608695652173\" data-s=\"300,640\"  data-type=\"png\" data-w=\"368\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153411693.jpg\"  \/><\/noscript><\/p>\n<p cid=\"n146\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n147\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/p>\n<p cid=\"n150\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n151\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">3\u3001\u589e\u52a0Generator\u914d\u7f6e (<\/span><span md-inline=\"strong\" class=\"\" style=\"box-sizing: border-box;\"><strong style=\"box-sizing: border-box;\">mybatis-generator:generate -e<\/strong><\/span><span md-inline=\"plain\" style=\"box-sizing: border-box;\">)\uff0cOK<\/span><span md-inline=\"image\"  class=\"md-image md-img-loaded\" style=\"box-sizing: border-box;word-break: break-all;min-width: 10px;min-height: 10px;font-family: monospace;display: inline-block;\"><\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.7286527514231499\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1054\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153413811.jpg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.7286527514231499\" data-s=\"300,640\"  data-type=\"png\" data-w=\"1054\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153413811.jpg\"  \/><\/noscript><\/p>\n<p cid=\"n150\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n151\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<p cid=\"n152\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n153\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">4\u3001\u8fd0\u884c<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.26\" data-s=\"300,640\"  data-type=\"png\" data-w=\"150\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153415615.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.26\" data-s=\"300,640\"  data-type=\"png\" data-w=\"150\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153415615.png\"  \/><\/noscript><\/p>\n<p cid=\"n152\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n153\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/p>\n<p cid=\"n156\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n157\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><span class=\"md-line md-end-block\" cid=\"n157\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u751f\u6210\u4ee3\u7801\u5982\u4e0b\u3002\u8fd9\u91cc\u6211\u4eec\u8fd0\u884c\u6210\u529f\u540e\uff0c\u540c\u4e00\u4e2a\u8868\uff0c\u4e0d\u8981\u8fd0\u884c\u591a\u6b21\uff0c\u5426\u5219mapper\u6620\u5c04\u6587\u4ef6\u4e2d\u4f1a\u751f\u6210\u591a\u6b21\u7684\u4ee3\u7801\u3002<\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"1.4421965317919074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"346\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153416853.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"1.4421965317919074\" data-s=\"300,640\"  data-type=\"png\" data-w=\"346\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153416853.png\"  \/><\/noscript><\/p>\n<p cid=\"n156\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n157\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/p>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n160\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">TestV2<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">Integer<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">Integer<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getId<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setId<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">Integer<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">this<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getUsername<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setUsername<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">this<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">==<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">?<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span> : <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">trim<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">getPassword<\/span>() {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">void<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setPassword<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">this<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">==<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">?<\/span> <span class=\"cm-atom\" style=\"box-sizing: border-box;color: rgb(34, 17, 153);\">null<\/span> : <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">trim<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n161\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">dao<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">interface<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">TestV2Mapper<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">record<\/span>);<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insertSelective<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">record<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"xml\" cid=\"n162\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">&lt;?xml<\/span> <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">version=\"1.0\" encoding=\"UTF-8\" ?&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;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=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">mapper<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">namespace<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.dao.TestV2Mapper\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">resultMap<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"BaseResultMap\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">type<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.model.TestV2\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">result<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">column<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">property<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">jdbcType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"INTEGER\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">result<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">column<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"username\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">property<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"username\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">jdbcType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"VARCHAR\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">result<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">column<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"password\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">property<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"password\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">jdbcType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"VARCHAR\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">\/&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">resultMap<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">insert<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"insert\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">parameterType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.model.TestV2\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  insert into testv2 (id, username, password<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   )<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   )<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">insert<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">insert<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">id<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"insertSelective\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">parameterType<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"cn.wbnull.springbootdemo.model.TestV2\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  insert into testv2<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">trim<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">prefix<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"(\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">suffix<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\")\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">suffixOverrides<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\",\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">test<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id != null\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    id,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">test<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"username != null\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    username,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">test<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"password != null\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    password,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">trim<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">trim<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">prefix<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"values (\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">suffix<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\")\"<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">suffixOverrides<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\",\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">test<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id != null\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    #{id,jdbcType=INTEGER},<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">test<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"username != null\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    #{username,jdbcType=VARCHAR},<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span> <span class=\"cm-attribute\" style=\"box-sizing: border-box;color: rgb(0, 0, 204);\">test<\/span>=<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"password != null\"<\/span> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    #{password,jdbcType=VARCHAR},<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">   <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">if<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">trim<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"> <span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">insert<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&lt;\/<\/span><span class=\"cm-tag\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">mapper<\/span><span class=\"cm-tag cm-bracket\" style=\"box-sizing: border-box;color: rgb(17, 119, 0);\">&gt;<\/span><\/span><\/pre>\n<h2 cid=\"n163\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;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);width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.5 \u6d4b\u8bd5<\/span><\/h2>\n<h3 cid=\"n164\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.5.1 Service\u5c42<\/span><\/h3>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n165\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">dao<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2Mapper<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">model<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">stereotype<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Service<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">MySQLTestV2Service<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2Mapper<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2Mapper<\/span>; <span class=\"cm-comment\" style=\"box-sizing: border-box;color: rgb(170, 85, 0);\">\/\/\u8fd9\u91cc\u4f1a\u6709\u62a5\u9519\uff0c\u4e0d\u7528\u7ba1<\/span><\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>, <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>, <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>) {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">new<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">TestV2<\/span>();<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setId<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setUsername<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">setPassword<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>);<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2Mapper<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">testV2<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h3 cid=\"n166\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.5.1 Controller\u5c42<\/span><\/h3>\n<pre class=\"md-fences md-end-block md-fences-with-lineno\" lang=\"java\" cid=\"n167\" mdtype=\"fences\" style=\"box-sizing: border-box;overflow: visible;font-family: Consolas, &quot;Liberation Mono&quot;, Courier, monospace;font-size: 0.9em;text-align: left;break-inside: avoid;background-image: inherit;background-position: inherit;background-size: inherit;background-repeat: inherit;background-attachment: inherit;background-origin: inherit;background-clip: inherit;border-width: 1px;border-style: solid;border-color: rgb(221, 221, 221);border-radius: 3px;padding: 8px 1em 6px 0px;margin-bottom: 15px;margin-top: 15px;width: inherit;\">    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">package<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">controller<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">cn<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">wbnull<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springbootdemo<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">service<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MySQLTestV2Service<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">beans<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">factory<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Autowired<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">context<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Scope<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">PostMapping<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestMapping<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RequestParam<\/span>;<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">import<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">org<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">springframework<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">web<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">bind<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">annotation<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">RestController<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RestController<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Scope<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"prototype\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestMapping<\/span>(<span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/mysql\/testv2\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\"><span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">class<\/span> <span class=\"cm-def\" style=\"box-sizing: border-box;color: rgb(0, 0, 255);\">MySQLTestV2Controller<\/span> {<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@Autowired<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">private<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">MySQLTestV2Service<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestV2Service<\/span>;<\/span>    <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@PostMapping<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"\/insert\"<\/span>)<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">public<\/span> <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"id\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">int<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">           <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"username\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>,<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">           <span class=\"cm-meta\" style=\"box-sizing: border-box;color: rgb(85, 85, 85);\">@RequestParam<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">value<\/span> <span class=\"cm-operator\" style=\"box-sizing: border-box;color: rgb(152, 26, 26);\">=<\/span> <span class=\"cm-string\" style=\"box-sizing: border-box;color: rgb(170, 17, 17);\">\"password\"<\/span>) <span class=\"cm-variable-3\" style=\"box-sizing: border-box;color: rgb(0, 136, 85);\">String<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span><\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  ) <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">throws<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">Exception<\/span> {<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">    <span class=\"cm-keyword\" style=\"box-sizing: border-box;color: rgb(119, 0, 136);\">return<\/span> <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">mySQLTestV2Service<\/span>.<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">insert<\/span>(<span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">id<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">username<\/span>, <span class=\"cm-variable\" style=\"box-sizing: border-box;color: rgb(0, 0, 0);\">password<\/span>);<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">  }<\/span>  <span role=\"presentation\" style=\"box-sizing: border-box;padding-right: 0.1px;\">}<\/span><\/pre>\n<h3 cid=\"n168\" mdtype=\"heading\" class=\"md-end-block md-heading\" style=\"box-sizing: border-box;font-size: 1.5em;margin-top: 1rem;margin-bottom: 1rem;font-weight: bold;line-height: 1.43;cursor: text;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;text-align: start;white-space: pre-wrap;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">5.5.2 insert<\/span><\/h3>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.6378205128205128\" data-s=\"300,640\"  data-type=\"png\" data-w=\"624\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153418155.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.6378205128205128\" data-s=\"300,640\"  data-type=\"png\" data-w=\"624\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153418155.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">Postman\u63a5\u6536\u5230\u8f93\u51fa\u4e3a1\uff0c\u8868\u793a\u6210\u529f\uff0c\u6211\u4eec\u53bb\u67e5\u4e0b\u6570\u636e\u5e93<\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"lazyload\"class=\"\" data-copyright=\"0\" data-ratio=\"0.5221843003412969\" data-s=\"300,640\"  data-type=\"png\" data-w=\"293\" style=\"\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153419590.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"\" data-copyright=\"0\" data-ratio=\"0.5221843003412969\" data-s=\"300,640\"  data-type=\"png\" data-w=\"293\" style=\"\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153419590.png\"  \/><\/noscript><\/p>\n<p><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\">\u6570\u636e\u6210\u529f\u63d2\u5165<\/span><span style=\"font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><\/span><\/p>\n<p cid=\"n177\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n178\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<p cid=\"n179\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n180\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">\u8fd9\u6837\uff0c\u5bf9\u4e8e\u5927\u91cf\u7684\u6570\u636e\u5e93\u8868\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u4f7f\u7528Generator\u6765\u751f\u6210\u57fa\u672c\u7684\u4ee3\u7801\uff0c\u7136\u540e\u81ea\u5df1\u518d\u6dfb\u52a0\u5176\u4ed6\u6240\u9700\u8981\u7684\u4ee3\u7801\u5373\u53ef\u3002<\/span><\/span><\/p>\n<p cid=\"n181\" mdtype=\"paragraph\" style=\"box-sizing: border-box;margin-block-start: 1rem;margin-block-end: 1rem;margin-top: 0.8em;margin-bottom: 0.8em;width: inherit;font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif;font-size: 16px;text-align: start;white-space: pre-wrap;\"><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">GitHub\uff1a<\/span><span md-inline=\"link\" class=\"\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">https:\/\/github.com\/dkbnull\/SpringBootDemo<\/span><\/span><\/span><\/p>\n<p><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"link\" class=\"\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\">CSDN\uff1ahttps:\/\/blog.csdn.net\/dkbnull\/article\/details\/87278817<\/span><\/span><\/span><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"link\" class=\"\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/span><\/p>\n<hr style=\"border-style: solid;border-width: 1px 0 0;border-color: rgba(0,0,0,0.1);-webkit-transform-origin: 0 0;-webkit-transform: scale(1, 0.5);transform-origin: 0 0;transform: scale(1, 0.5);\"  \/>\n<p><span class=\"md-line md-end-block\" cid=\"n182\" mdtype=\"line\" style=\"box-sizing: border-box;display: block;\"><span md-inline=\"link\" class=\"\" style=\"box-sizing: border-box;\"><span md-inline=\"plain\" style=\"box-sizing: border-box;\"><\/span><\/span><\/span><\/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\u6559\u7a0b\u4e2d\u4ee3\u7801\u4e0d\u4fbf\u4e8e\u9605\u8bfb\uff0c\u8bf7\u4f7f\u7528\u7535\u8111\u67e5\u770b\u6216\u70b9\u51fb\u9605\u8bfb\u539f\u6587\u3002 0. \u5f00\u53d1\u73af\u5883 IDE\uff1aIntelliJ IDEA 2017.1 x64 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":4378,"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-4395","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\/20240524153356555-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153359688.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153356555-300x128.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153356555-1024x435.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153359688.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153356555-300x128.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153356555-1024x435.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153356555.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153359688.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153359688.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153400873.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153400873.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153402212.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153402212.png","id":"image5"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153403390.png","id":"image6"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153403390.png","id":"image7"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153404871.png","id":"image8"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153404871.png","id":"image9"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153406243.png","id":"image10"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153406243.png","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153408612.png","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153408612.png","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153410322.png","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153410322.png","id":"image15"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153411693.jpg","id":"image16"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153411693.jpg","id":"image17"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153413811.jpg","id":"image18"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153413811.jpg","id":"image19"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153415615.png","id":"image20"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153415615.png","id":"image21"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153416853.png","id":"image22"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153416853.png","id":"image23"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153418155.png","id":"image24"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153418155.png","id":"image25"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153419590.png","id":"image26"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/05\/20240524153419590.png","id":"image27"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Mybatis","post_date":"2019-02-15","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":326,"next_post_id":4377,"next_post_title":"Spring Boot\u5165\u95e8\uff1a\u4f7f\u7528Schedule\u5b9e\u73b0\u5b9a\u65f6\u4efb\u52a1","previous_post_id":4399,"previous_post_title":"Spring Boot\u5165\u95e8\uff1a\u81ea\u5b9a\u4e49log4j\u65e5\u5fd7\u8f93\u51fa","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4395","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=4395"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/4395\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/4378"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=4395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=4395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=4395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}