{"id":159,"date":"2021-04-26T21:19:44","date_gmt":"2021-04-26T13:19:44","guid":{"rendered":"http:\/\/112.124.66.68\/?p=159"},"modified":"2021-04-26T21:19:44","modified_gmt":"2021-04-26T13:19:44","slug":"%e4%bb%80%e4%b9%88%e6%98%afmybatis","status":"publish","type":"post","link":"https:\/\/sanlangcode.com\/index.php\/2021\/04\/26\/%e4%bb%80%e4%b9%88%e6%98%afmybatis\/","title":{"rendered":"\u4ec0\u4e48\u662fMyBatis"},"content":{"rendered":"\n<p> \uff081\uff09Mybatis\u662f\u4e00\u4e2a\u534aORM\uff08\u5bf9\u8c61\u5173\u7cfb\u6620\u5c04\uff09\u6846\u67b6\uff0c\u5b83\u5185\u90e8\u5c01\u88c5\u4e86JDBC\uff0c\u5f00\u53d1\u65f6\u53ea\u9700\u8981\u5173\u6ce8SQL\u8bed\u53e5<br>\u672c\u8eab\uff0c\u4e0d\u9700\u8981\u82b1\u8d39\u7cbe\u529b\u53bb\u5904\u7406\u52a0\u8f7d\u9a71\u52a8\u3001\u521b\u5efa\u8fde\u63a5\u3001\u521b\u5efastatement\u7b49\u7e41\u6742\u7684\u8fc7\u7a0b\u3002\u7a0b\u5e8f\u5458\u76f4\u63a5\u7f16\u5199\u539f<br>\u751f\u6001sql\uff0c\u53ef\u4ee5\u4e25\u683c\u63a7\u5236sql\u6267\u884c\u6027\u80fd\uff0c\u7075\u6d3b\u5ea6\u9ad8\u3002<br>\uff082\uff09MyBatis \u53ef\u4ee5\u4f7f\u7528 XML \u6216\u6ce8\u89e3\u6765\u914d\u7f6e\u548c\u6620\u5c04\u539f\u751f\u4fe1\u606f\uff0c\u5c06 POJO\u6620\u5c04\u6210\u6570\u636e\u5e93\u4e2d\u7684\u8bb0\u5f55\uff0c\u907f\u514d\u4e86<br>\u51e0\u4e4e\u6240\u6709\u7684 JDBC \u4ee3\u7801\u548c\u624b\u52a8\u8bbe\u7f6e\u53c2\u6570\u4ee5\u53ca\u83b7\u53d6\u7ed3\u679c\u96c6\u3002<br>\uff083\uff09\u901a\u8fc7xml \u6587\u4ef6\u6216\u6ce8\u89e3\u7684\u65b9\u5f0f\u5c06\u8981\u6267\u884c\u7684\u5404\u79cd statement \u914d\u7f6e\u8d77\u6765\uff0c\u5e76\u901a\u8fc7java\u5bf9\u8c61\u548c statement<br>\u4e2dsql\u7684\u52a8\u6001\u53c2\u6570\u8fdb\u884c\u6620\u5c04\u751f\u6210\u6700\u7ec8\u6267\u884c\u7684sql\u8bed\u53e5\uff0c\u6700\u540e\u7531mybatis\u6846\u67b6\u6267\u884csql\u5e76\u5c06\u7ed3\u679c\u6620\u5c04\u4e3ajava\u5bf9<br>\u8c61\u5e76\u8fd4\u56de\u3002\uff08\u4ece\u6267\u884csql\u5230\u8fd4\u56deresult\u7684\u8fc7\u7a0b\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uff081\uff09Mybatis\u662f\u4e00\u4e2a\u534aOR&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":207,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-159","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mybatis"],"_links":{"self":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":0,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/posts\/159\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media\/207"}],"wp:attachment":[{"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/categories?post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sanlangcode.com\/index.php\/wp-json\/wp\/v2\/tags?post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}