{"id":203439,"date":"2025-05-22T12:52:24","date_gmt":"2025-05-22T04:52:24","guid":{"rendered":"https:\/\/server.hk\/cnblog\/203439\/"},"modified":"2025-05-22T12:52:24","modified_gmt":"2025-05-22T04:52:24","slug":"%e5%a6%82%e4%bd%95%e4%bc%98%e5%8c%96-java-ssm-%e9%a1%b9%e7%9b%ae%e4%b8%ad%e5%a4%a7%e6%89%b9%e9%87%8f%e6%95%b0%e6%8d%ae%e6%9f%a5%e8%af%a2%e7%9a%84%e6%80%a7%e8%83%bd%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/203439\/","title":{"rendered":"\u5982\u4f55\u4f18\u5316 Java SSM \u9879\u76ee\u4e2d\u5927\u6279\u91cf\u6570\u636e\u67e5\u8be2\u7684\u6027\u80fd\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u4f18\u5316 Java SSM \u9879\u76ee\u4e2d\u5927\u6279\u91cf\u6570\u636e\u67e5\u8be2\u7684\u6027\u80fd\uff1f<\/h1>\n<p>\u5c0f\u4f19\u4f34\u4eec\u5bf9\u6587\u7ae0\u7f16\u7a0b\u611f\u5174\u8da3\u5417\uff1f\u662f\u5426\u6b63\u5728\u5b66\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff1f\u5982\u679c\u662f\uff0c\u90a3\u4e48\u672c\u6587\u300a\u5982\u4f55\u4f18\u5316 Java SSM \u9879\u76ee\u4e2d\u5927\u6279\u91cf\u6570\u636e\u67e5\u8be2\u7684\u6027\u80fd\uff1f\u300b\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff0c\u672c\u7bc7\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\u3002\u5728\u4e4b\u540e\u7684\u6587\u7ae0\u4e2d\u4e5f\u4f1a\u591a\u591a\u5206\u4eab\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241108\/1731045468672da85cbf228.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>Java Ssm \u9879\u76ee\u5927\u6279\u91cf\u6570\u636e\u67e5\u8be2\u4f18\u5316<\/strong><\/p>\n<p>\u5728\u7cfb\u7edf\u4e2d\uff0c\u5f53\u9700\u8981\u67e5\u8be2\u4e00\u5bf9\u591a\u7684\u8868\u7ed3\u6784\u65f6\uff0c\u5b58\u5728\u5927\u6279\u91cf\u6570\u636e\u67e5\u8be2\u7684\u9700\u6c42\u3002<\/p>\n<p>\u76ee\u524d\u7684\u63a5\u53e3\u5b9e\u73b0\u65b9\u5f0f\u4e3a\u5c06\u5355\u53f7\u96c6\u5408\u5207\u5272\u4e3a 999 \u4e2a\u5355\u53f7\u4e00\u7ec4\uff0c\u7136\u540e\u5faa\u73af\u67e5\u8be2\u6570\u636e\u5e93 6 \u6b21\u3002\u867d\u7136\u6b64\u65b9\u6cd5\u6267\u884c\u65f6\u957f\u4e3a 5~8 \u79d2\uff0c\u4f46\u4e3a\u4e86\u4f18\u5316\u63a5\u53e3\u54cd\u5e94\u65f6\u95f4\uff0c\u53ef\u4ee5\u8003\u8651\u5176\u4ed6\u65b9\u5f0f\u3002<\/p>\n<p><strong>\u4f18\u5316\u5efa\u8bae\uff1a<\/strong><\/p>\n<p><strong>CountDownLatch \u5e76\u53d1\u67e5\u8be2<\/strong><\/p>\n<p>CountDownLatch \u63d0\u4f9b\u4e86\u4e00\u79cd\u7ebf\u7a0b\u534f\u8c03\u673a\u5236\uff0c\u53ef\u7528\u4e8e\u5b9e\u73b0\u5e76\u53d1\u67e5\u8be2\u3002<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a CountDownLatch\uff0c\u503c\u4e3a\u67e5\u8be2\u7ebf\u7a0b\u6570\u3002<\/li>\n<li>\u5728\u6bcf\u4e2a\u67e5\u8be2\u7ebf\u7a0b\u4e2d\uff0c\u6267\u884c\u67e5\u8be2\u5e76\u8c03\u7528 countDownLatch.countDown() \u9012\u51cf\u8ba1\u6570\u5668\u3002<\/li>\n<li>\u4e3b\u7ebf\u7a0b\u8c03\u7528 countDownLatch.await() \u7b49\u5f85\u6240\u6709\u67e5\u8be2\u7ebf\u7a0b\u5b8c\u6210\u3002<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u540c\u65f6\u53d1\u8d77\u591a\u4e2a\u67e5\u8be2\uff0c\u5728\u6240\u6709\u67e5\u8be2\u5b8c\u6210\u524d\u4e3b\u7ebf\u7a0b\u4e0d\u4f1a\u7ee7\u7eed\u6267\u884c\u3002<\/p>\n<p><strong>\u8c03\u6574\u96c6\u5408\u5207\u5272\u6570\u91cf<\/strong><\/p>\n<p>\u76ee\u524d\u5c06\u5355\u53f7\u96c6\u5408\u5207\u5272\u4e3a 999 \u4e2a\u4e00\u7ec4\uff0c\u53ef\u8003\u8651\u8c03\u6574\u4e3a 5000 \u4e2a\u4e00\u7ec4\u3002\u7531\u4e8e\u67e5\u8be2\u5c5e\u4e8e IO \u8017\u65f6\u578b\u64cd\u4f5c\uff0c\u7ebf\u7a0b\u6570\u91cf\u8fc7\u591a\u53cd\u800c\u4f1a\u5f71\u54cd\u6027\u80fd\u3002<\/p>\n<p><strong>\u4f18\u5316\u67e5\u8be2 SQL<\/strong><\/p>\n<p>\u68c0\u67e5\u662f\u5426\u53ef\u4ee5\u5728 SQL \u67e5\u8be2\u4e2d\u4f7f\u7528\u4f18\u5316\u6280\u5de7\uff0c\u4f8b\u5982\u7d22\u5f15\u3001\u8fde\u63a5\u4f18\u5316\u6216\u6279\u91cf\u63d2\u5165\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u53ef\u8003\u8651\u4f7f\u7528 MyBatis \u7b49 ORM \u6846\u67b6\u8fdb\u884c\u67e5\u8be2\uff0c\u5b83\u53ef\u4ee5\u7b80\u5316\u67e5\u8be2\u64cd\u4f5c\u5e76\u4f18\u5316\u6027\u80fd\u3002<\/p>\n<p>\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300a\u5982\u4f55\u4f18\u5316 Java SSM \u9879\u76ee\u4e2d\u5927\u6279\u91cf\u6570\u636e\u67e5\u8be2\u7684\u6027\u80fd\uff1f\u300b\u7684\u4ecb\u7ecd\u5e94\u8be5\u8ba9\u4f60\u6536\u83b7\u591a\u591a\u4e86\u5427\uff01\u6b22\u8fce\u5927\u5bb6\u6536\u85cf\u6216\u5206\u4eab\u7ed9\u66f4\u591a\u9700\u8981\u5b66\u4e60\u7684\u670b\u53cb\u5427~\u516c\u4f17\u53f7\u4e5f\u4f1a\u53d1\u5e03\u6587\u7ae0\u76f8\u5173\u77e5\u8bc6\uff0c\u5feb\u6765\u5173\u6ce8\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f18\u5316 Java SSM \u9879\u76ee&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-203439","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/203439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=203439"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/203439\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=203439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=203439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=203439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}