{"id":1946,"date":"2017-02-23T16:34:25","date_gmt":"2017-02-23T08:34:25","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=1946"},"modified":"2017-06-08T09:25:32","modified_gmt":"2017-06-08T01:25:32","slug":"mybatis%e5%ae%9e%e6%88%98%e6%95%99%e7%a8%8b%e4%bb%8e%e5%85%a5%e9%97%a8%e5%88%b0%e7%b2%be%e9%80%9a%e5%ad%a6%e4%b9%a0%e8%b5%84%e6%ba%90","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=1946","title":{"rendered":"mybatis\u5b9e\u6218\u6559\u7a0b\u4ece\u5165\u95e8\u5230\u7cbe\u901a(\u5b66\u4e60\u8d44\u6e90)"},"content":{"rendered":"<p>mybatis\u5b9e\u6218\u6559\u7a0b\u5165\u95e8\u5230\u7cbe\u901a \u8f6c\u81ea\uff1a<a href=\"http:\/\/www.yihaomen.com\/article\/java\/302.htm\" target=\"_blank\">http:\/\/www.yihaomen.com\/article\/java\/302.htm<\/a><\/p>\n<p>mybatis\u5b98\u65b9\u7684\u6559\u7a0b\uff1a<a href=\"http:\/\/mybatis.github.io\/mybatis-3\/\" target=\"_blank\">http:\/\/mybatis.github.io\/mybatis-3\/<\/a><\/p>\n<div id=\"container\">\n<div id=\"body\">\n<div id=\"main\">\n<div class=\"main\">\n<div id=\"article_details\" class=\"details\">\n<div id=\"article_content\" class=\"article_content\">\n<p><span style=\"font-size: 14pt;\">\u4e2d\u6587\u6559\u7a0b\u7684\uff1a<a href=\"http:\/\/mybatis.github.io\/mybatis-3\/zh\/sqlmap-xml.html\" target=\"_blank\">http:\/\/mybatis.github.io\/mybatis-3\/zh\/sqlmap-xml.html<\/a><\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 18pt;\"><strong>\u4ec0\u4e48\u662fmybatis<\/strong><\/span><br \/>\nMyBatis\u662f\u652f\u6301\u666e\u901aSQL\u67e5\u8be2\uff0c\u5b58\u50a8\u8fc7\u7a0b\u548c\u9ad8\u7ea7\u6620\u5c04\u7684\u4f18\u79c0\u6301\u4e45\u5c42\u6846\u67b6\u3002MyBatis\u6d88\u9664\u4e86\u51e0\u4e4e\u6240\u6709\u7684JDBC\u4ee3\u7801\u548c\u53c2\u6570\u7684\u624b\u5de5\u8bbe\u7f6e\u4ee5\u53ca\u7ed3\u679c\u96c6\u7684\u68c0\u7d22\u3002MyBatis\u4f7f\u7528\u7b80\u5355\u7684XML\u6216\u6ce8\u89e3\u7528\u4e8e\u914d\u7f6e\u548c\u539f\u59cb\u6620\u5c04\uff0c\u5c06\u63a5\u53e3\u548cJava\u7684POJOs\uff08Plan Old Java Objects\uff0c\u666e\u901a\u7684Java\u5bf9\u8c61\uff09\u6620\u5c04\u6210\u6570\u636e\u5e93\u4e2d\u7684\u8bb0\u5f55.<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: 18pt;\"><strong>orm\u5de5\u5177\u7684\u57fa\u672c\u601d\u60f3<\/strong><\/span><br \/>\n\u65e0\u8bba\u662f\u7528\u8fc7\u7684hibernate,mybatis,\u4f60\u90fd\u53ef\u4ee5\u6cd5\u76f8\u4ed6\u4eec\u6709\u4e00\u4e2a\u5171\u540c\u70b9\uff1a<br \/>\n1. \u4ece\u914d\u7f6e\u6587\u4ef6(\u901a\u5e38\u662fXML\u914d\u7f6e\u6587\u4ef6\u4e2d)\u5f97\u5230 sessionfactory.<br \/>\n2. \u7531sessionfactory\u00a0\u00a0\u4ea7\u751f session<br \/>\n3. \u5728session \u4e2d\u5b8c\u6210\u5bf9\u6570\u636e\u7684\u589e\u5220\u6539\u67e5\u548c\u4e8b\u52a1\u63d0\u4ea4\u7b49.<br \/>\n4. \u5728\u7528\u5b8c\u4e4b\u540e\u5173\u95edsession \u3002<br \/>\n5. \u5728java \u5bf9\u8c61\u548c \u6570\u636e\u5e93\u4e4b\u95f4\u6709\u505amapping \u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u4e5f\u901a\u5e38\u662fxml \u6587\u4ef6\u3002<\/p>\n<p>\u8fd9\u662f\u4e00\u4e2a\u7cfb\u5217\u6559\u7a0b\u3002\u6211\u5c06\u628a\u6240\u6709\u7684\u94fe\u63a5\u90fd\u8bb0\u5f55\u5728\u6b64\uff0c\u4ee5\u4f9b\u53c2\u8003.\u6240\u6709\u7a0b\u5e8f\u7684 jar\u00a0\u00a0\u5305\uff0c\u53ef\u4ee5\u5728 \u7b2c\u516d\u4e2a\u4f8b\u5b50\u7684\u7a0b\u5e8f\u4e2d\u4e0b\u8f7d\u5f97\u5230.<\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/303.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u4e00\uff1a\u5f00\u53d1\u73af\u5883\u642d\u5efa<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/304.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u4e8c\uff1a\u4ee5\u63a5\u53e3\u7684\u65b9\u5f0f\u7f16\u7a0b<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/305.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u4e09\uff1a\u5b9e\u73b0\u5355\u8868\u7684\u589e\u5220\u6539\u67e5\u7b49\u64cd\u4f5c<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/306.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u56db:\u5b9e\u73b0\u5173\u8054\u6570\u636e\u7684\u67e5\u8be2<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/309.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u4e94:mybatis\u4e0espring3\u96c6\u6210<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/318.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u516d:mybatis\u4e0espring3 MVC \u96c6\u6210\u4f8b\u5b50<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/326.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u4e03:\u5b9e\u73b0mybatis\u5206\u9875(\u6e90\u7801\u4e0b\u8f7d)<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/328.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u516b:mybatis \u52a8\u6001 sql \u8bed\u53e5\u57fa\u7840<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/331.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u4e5d:mybatis \u4ee3\u7801\u751f\u6210\u5de5\u5177\u7684\u4f7f\u7528<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/589.htm\" target=\"_blank\" rel=\"external\">mybatis oracle \u4ee3\u7801\u751f\u6210\u5de5\u5177<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/336.htm\" target=\"_blank\" rel=\"external\">mybatis\u5b9e\u6218\u6559\u7a0b(mybatis in action)\u4e4b\u5341:mybatis SqlSessionSupport \u7684\u4f7f\u7528,\u6784\u4ef6DAO \u5c42\u7684\u5e94\u7528<\/a><\/strong><\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;\u8865\u5145\u6559\u7a0b&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n<strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/425.htm\" target=\"_blank\" rel=\"external\">mybatis\u8865\u5145\u6559\u7a0b\u4e4b\u4e00\uff1a\u5728\u63a7\u5236\u53f0\u663e\u793asql\u8bed\u53e5\uff0c\u7c7b\u4f3chibernate show_sql.<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/426.htm\" target=\"_blank\" rel=\"external\">mybatis\u8865\u5145\u6559\u7a0b\u4e4b\u4e8c\uff1a\u4f20\u9012\u591a\u4e2a\u53c2\u6570\u7684\u65b9\u6cd5(Multiple parameters)<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/428.htm\" target=\"_blank\" rel=\"external\">mybatis\u8865\u5145\u6559\u7a0b\u4e4b\u4e09\uff1a\u7f13\u5b58\u7684\u4f7f\u7528<\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/485.htm\" target=\"_blank\" rel=\"external\">mybatis \u4f8b\u5b50\uff1amybatis,spring,bootstrap \u4f8b\u5b50\u4e0b\u8f7d,\u652f\u6301\u79fb\u52a8\u8bbe\u5907 <\/a><\/strong><\/p>\n<p><strong><a href=\"http:\/\/www.yihaomen.com\/article\/java\/569.htm\" target=\"_blank\" rel=\"external\">mybatis \u4f8b\u5b50\uff1amybatis,spring,bootstrap \u4f8b\u5b50\u4e0b\u8f7d,\u652f\u6301\u79fb\u52a8\u8bbe\u5907\u4e0b\u8f7d\u7684 maven\u5de5\u7a0b\u4f8b\u5b50<\/a><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2 class=\"entrylistTitle\">MyBatis\u5165\u95e8\u57fa\u7840<\/h2>\n<p><a id=\"CategoryEntryList1_EntryStoryList_ctl00_Entries_TitleUrl_5\" class=\"entrylistItemTitle\" href=\"http:\/\/www.cnblogs.com\/xrq730\/p\/5254301.html\">MyBatis1\uff1aMyBatis\u5165\u95e8<\/a><\/p>\n<p><a id=\"CategoryEntryList1_EntryStoryList_ctl00_Entries_TitleUrl_4\" class=\"entrylistItemTitle\" href=\"http:\/\/www.cnblogs.com\/xrq730\/p\/5256221.html\">MyBatis2\uff1aconfig.xml\u6587\u4ef6<\/a><\/p>\n<p><a id=\"CategoryEntryList1_EntryStoryList_ctl00_Entries_TitleUrl_3\" class=\"entrylistItemTitle\" href=\"http:\/\/www.cnblogs.com\/xrq730\/p\/5276988.html\">MyBatis3\uff1aSQL\u6620\u5c04<\/a><\/p>\n<p><a id=\"CategoryEntryList1_EntryStoryList_ctl00_Entries_TitleUrl_2\" class=\"entrylistItemTitle\" href=\"http:\/\/www.cnblogs.com\/xrq730\/p\/5289638.html\">MyBatis4\uff1a\u52a8\u6001SQL<\/a><\/p>\n<p><a id=\"CategoryEntryList1_EntryStoryList_ctl00_Entries_TitleUrl_1\" class=\"entrylistItemTitle\" href=\"http:\/\/www.cnblogs.com\/xrq730\/p\/5448656.html\">MyBatis5\uff1aMyBatis\u96c6\u6210Spring\u4e8b\u52a1\u7ba1\u7406\uff08\u4e0a\u7bc7\uff09<\/a><\/p>\n<p><a id=\"CategoryEntryList1_EntryStoryList_ctl00_Entries_TitleUrl_0\" class=\"entrylistItemTitle\" href=\"http:\/\/www.cnblogs.com\/xrq730\/p\/5454381.html\">MyBatis6\uff1aMyBatis\u96c6\u6210Spring\u4e8b\u7269\u7ba1\u7406\uff08\u4e0b\u7bc7\uff09<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>mybatis\u5b9e\u6218\u6559\u7a0b\u5165\u95e8\u5230\u7cbe\u901a \u8f6c\u81ea\uff1ahttp:\/\/www.yihaomen.com\/article\/jav [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[59,92],"tags":[],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1946"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1946"}],"version-history":[{"count":7,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1946\/revisions"}],"predecessor-version":[{"id":1981,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/1946\/revisions\/1981"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}