{"id":10006716,"date":"2022-10-24T11:34:34","date_gmt":"2022-10-24T03:34:34","guid":{"rendered":"https:\/\/ityet.com\/?p=10006716"},"modified":"2022-10-24T11:34:34","modified_gmt":"2022-10-24T03:34:34","slug":"%e7%a8%8b%e5%ba%8f%e5%91%98%e5%a6%82%e4%bd%95%e6%90%9c%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006716","title":{"rendered":"\u7a0b\u5e8f\u5458\u5982\u4f55\u641c\u7d22"},"content":{"rendered":"<h2>\u7a0b\u5e8f\u5458\u5982\u4f55\u641c\u7d22<\/h2>\n<p>\u5f53\u4eca\u7a0b\u5e8f\u5458\u53ef\u4ee5\u8bf4\u5b8c\u5168\u79bb\u4e0d\u5f00\u641c\u7d22\u5de5\u5177\uff0c\u4ece\u4e00\u4e2a\u9879\u76ee\u8981\u4f7f\u7528\u4ec0\u4e48\u5de5\u5177\uff0c\u5230\u4e00\u6bb5\u4ee3\u7801\u600e\u4e48\u5b9e\u73b0\uff0c\u518d\u5230\u4e00\u4e2a\u95ee\u9898\u600e\u4e48\u53bb\u89e3\u51b3\uff0c\u7b49\u7b49\uff0c\u51e0\u4e4e\u5168\u7a0b\u90fd\u6709\u641c\u7d22\u7684\u884c\u4e3a\u53d1\u751f\u3002<\/p>\n<p>\u4f46\u662f\u636e\u6211\u7684\u89c2\u5bdf\uff0c\u5728\u56fd\u5185\u76f8\u5f53\u4e00\u90e8\u5206\u7a0b\u5e8f\u5458\uff0c\u4e0d\u4f1a\u4f7f\u7528\u5408\u7406\u7684\u5229\u7528\u641c\u7d22\u529f\u80fd\uff0c\u5bfc\u81f4\u4e00\u4e9b\u7b80\u5355\u7684\u95ee\u9898\u8fdf\u8fdf\u65e0\u6cd5\u89e3\u51b3\u6216\u8005\u8fc7\u7a0b\u4e0d\u662f\u5f88\u987a\u7545\u3002<\/p>\n<p>\u56e0\u6b64\u6211\u4e00\u76f4\u60f3\u5199\u4e00\u7bc7\u5173\u4e8e\u641c\u7d22\u6587\u7ae0\uff0c\u6765\u5206\u4eab\u4e00\u4e0b\u6211\u5bf9\u4e8e\u641c\u7d22\u7684\u7406\u89e3\u548c\u770b\u6cd5\uff0c\u5c3d\u53ef\u80fd\u7684\u628a\u641c\u7d22\u8fd9\u4ef6\u4e8b\u60c5\uff0c\u4ece\u6211\u7684\u89d2\u5ea6\u9610\u8ff0\u660e\u767d\uff0c\u5e0c\u671b\u53ef\u4ee5\u5e2e\u52a9\u5230\u4e00\u4e9b\u9700\u8981\u7684\u7a0b\u5e8f\u5458\u3002<\/p>\n<p>\u6211\u4f1a\u9001\u4e09\u4e2a\u5927\u7684\u65b9\u9762\u5c55\u5f00\u95ee\u9898\uff0c\u7b2c\u4e00\u662f\u56fd\u5185\u7684\u4e2d\u6587\u4e92\u8054\u7f51\u8d28\u91cf\uff0c\u7b2c\u4e8c\u662f\u7a0b\u5e8f\u5458\u5e94\u8be5\u5177\u5907\u54ea\u4e9b\u641c\u7d22\u6280\u80fd\uff0c\u7b2c\u4e09\u662f\u5982\u4f55\u6b63\u786e\u5229\u7528\u641c\u7d22\u7ed3\u679c\u3002<\/p>\n<h2>\u4e00. \u56fd\u5185\u4e2d\u6587\u4e92\u8054\u7f51<\/h2>\n<p>\u8fd9\u4e2a\u5927\u95ee\u9898\uff0c\u6211\u5f00\u7bc7\u70b9\u9898\uff0c\u56fd\u5185\u7684\u4e2d\u6587\u4e92\u8054\u7f51\u73af\u5883\u582a\u5fe7\uff0c\u5927\u91cf\u7684\u5783\u573e\u4fe1\u606f\u5145\u65a5\u5176\u4e2d\uff0c\u7ed9\u641c\u7d22\u6709\u4ef7\u503c\u7684\u4fe1\u606f\u5e26\u6765\u4e86\u6781\u5927\u7684\u5e72\u6270\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u6211\u8981\u5148\u8bf4\u8fd9\u4e2a\u95ee\u9898\u5462\uff0c\u56e0\u4e3a\u6211\u4eec\u8bf4\u641c\u7d22\u8fd9\u4ef6\u4e8b\u60c5\uff0c\u610f\u4e49\u5e76\u4e0d\u662f\u5355\u7eaf\u6307\u7684\u641c\u7d22\u672c\u8eab\uff0c\u5b83\u80cc\u540e\u6709\u7740\u4e00\u4e2a\u9690\u85cf\u542b\u4e49\uff0c\u90a3\u5c31\u662f\u641c\u7d22\u8fd9\u4e2a\u884c\u4e3a\u53d1\u751f\u7684\u73af\u5883\u3002<\/p>\n<p><strong>\u5982\u679c\u73af\u5883\u672c\u8eab\u5c31\u5b58\u5728\u5927\u91cf\u65e0\u4ef7\u503c\u7684\u4fe1\u606f\uff0c\u90a3\u4e48\u5fc5\u7136\u4f1a\u5e26\u6765\u7684\u5c31\u662f\u641c\u7d22\u7684\u6210\u672c\u4e0a\u5347\uff0c\u4f60\u8981\u82b1\u8d39\u66f4\u5927\u7684\u7cbe\u529b\u53bb\u4f18\u5316\u4f60\u7684\u641c\u7d22\uff0c\u66f4\u591a\u7684\u65f6\u95f4\u53bb\u7b5b\u9009\u548c\u7504\u522b\u4f60\u7684\u641c\u7d22\u7ed3\u679c\u3002<\/strong><\/p>\n<p>\u5f88\u4e0d\u5e78\uff0c\u6211\u4eec\u56fd\u5185\u7684\u4e2d\u6587\u4e92\u8054\u7f51\uff0c\u751a\u81f3\u662f\u4e0d\u4ec5\u4ec5\u662f\u4e0e\u6280\u672f\u76f8\u5173\u7684\u4e92\u8054\u7f51\u73af\u5883\uff0c\u6b63\u662f\u8fd9\u79cd\u5145\u6ee1\u4e86\u5927\u91cf\u65e0\u4ef7\u503c\u4fe1\u606f\u7684\u73af\u5883\u3002<\/p>\n<p>\u8fd9\u79cd\u73af\u5883\u5982\u679c\u8bf4\u4ec5\u4ec5\u5bfc\u81f4\u4e86\u4f4e\u6548\u8fd9\u4ef6\u4e8b\uff0c\u90a3\u8fd8\u4e0d\u662f\u5f88\u4e25\u91cd\u3002<\/p>\n<p><strong>\u66f4\u5927\u7684\u95ee\u9898\u662f\uff0c\u8fd9\u79cd\u73af\u5883\u7ed9\u4e86\u5927\u91cf\u7684\u7a0b\u5e8f\u5458\u4f4e\u6c34\u5e73\u7684\u751a\u81f3\u9519\u8bef\u7684\u5f15\u5bfc\uff0c\u4ed6\u4eec\u65e0\u6cd5\u66f4\u597d\u7684\u63d0\u5347\u81ea\u8eab\u7684\u6280\u80fd\u6c34\u5e73\uff0c\u76f8\u5e94\u7684\uff0c\u5f88\u591a\u9879\u76ee\u7684\u6c34\u5e73\u4e5f\u65e0\u6cd5\u63d0\u9ad8\uff0c\u67d0\u4e9b\u516c\u53f8\u7684\u5927\u91cf\u9879\u76ee\u4f1a\u53cd\u590d\u7684\u9677\u5165\u5230\u65e0\u5c3d\u7684 bug \u548c\u4f4e\u6c34\u5e73\u8fd0\u884c\u4e2d\uff0c\u8fd9\u5e26\u6765\u7684\u5f71\u54cd\u662f\u975e\u5e38\u6df1\u8fdc\u7684\u3002<\/strong><\/p>\n<h3>\u4f4e\u6548\u641c\u7d22\u7684\u539f\u7f6a\uff1a\u767e\u5ea6<\/h3>\n<p>\u5728\u56fd\u5185\u63d0\u5230\u641c\u7d22\uff0c\u767e\u5ea6\u662f\u4e00\u4e2a\u6c38\u8fdc\u7ed5\u4e0d\u8fc7\u53bb\u7684\u8bcd\u3002<\/p>\n<p>\u4f5c\u4e3a\u4e92\u8054\u7f51\u7edd\u5927\u90e8\u5206\u4fe1\u606f\u7684\u5165\u53e3\uff0c\u767e\u5ea6\u8eab\u4e0a\u80a9\u8d1f\u7684\u8d23\u4efb\u4e0d\u7528\u591a\u8bf4\u3002<\/p>\n<p>\u4f46\u662f\u5982\u4eca\u7684\u767e\u5ea6\u53d7\u5229\u76ca\u9a71\u4f7f\u5927\u8fc7\u8d23\u4efb\u672c\u8eab\uff0c\u5411\u641c\u7d22\u4e2d\u6295\u653e\u4e86\u5927\u91cf\u5e7f\u544a\uff0c\u70ed\u95e8\u641c\u7d22\u88ab\u76f8\u5173\u5229\u76ca\u56e2\u4f53\u4e70\u4e0b\uff0c\u641c\u7d22\u7ed3\u679c\u8c01\u7ed9\u7684\u94b1\u591a\u8c01\u5c31\u6392\u5728\u524d\u9762\uff0c\u641c\u7d22\u7b54\u6848\u51c6\u786e\u6027\u5bfc\u5411\u53d8\u5f31\uff0c\u4e2d\u6587\u641c\u7d22\u7ecf\u5e38\u627e\u4e0d\u5230\u81ea\u5df1\u60f3\u8981\u7684\u7b54\u6848\u3002<\/p>\n<p>\u5f88\u591a\u7b80\u5355\u7684\u521d\u7ea7\u95ee\u9898\uff0c\u5728\u767e\u5ea6\u641c\u7d22\u7684\u52a0\u6301\u4e0b\uff0c\u515c\u515c\u8f6c\u8f6c\u65e0\u6cd5\u89e3\u51b3\uff0c\u6216\u8005\u662f\u65e0\u6cd5\u641c\u7d22\u5230\u9ad8\u8d28\u91cf\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<p>\u5bf9\u4e8e\u6280\u672f\u641c\u7d22\u6765\u8bf4\uff0c\u767e\u5ea6\uff0c\u5df2\u7ecf\u6210\u4e3a\u4e00\u4e2a\u8fc7\u53bb\u5f0f\u3002<\/p>\n<h3>\u539f\u5730\u8e0f\u6b65\u7684\u4e2d\u6587\u4e92\u8054\u7f51\u73af\u5883<\/h3>\n<p>\u5982\u679c\u8bf4\u767e\u5ea6\u4f5c\u4e3a\u4e2d\u6587\u4e92\u8054\u7f51\u73af\u5883\u7684\u5b88\u95e8\u4eba\uff0c\u6ca1\u6709\u505a\u597d\u5b88\u95e8\u4eba\u7684\u8d23\u4efb\uff0c\u90a3\u95e8\u5185\u7684\u4e16\u754c\u4e5f\u5e76\u4e0d\u662f\u5982\u6b64\u7f8e\u597d\uff0c\u5176\u9020\u6210\u7684\u5371\u5bb3\u751a\u81f3\u8981\u6bd4\u767e\u5ea6\u5e26\u6765\u7684\u95ee\u9898\u66f4\u52a0\u4e25\u91cd\u3002<\/p>\n<p>\u4e2d\u6587\u73af\u5883\u6216\u8bb8\u662f\u7531\u4e8e stackoverflow \u7684\u51fa\u73b0\uff0c\u963b\u788d\u4e86\u5176\u53d1\u5c55\uff0c\u5bfc\u81f4\u6280\u672f\u95ee\u7b54\u5e73\u53f0\u4e0d\u591f\u591a\uff0c\u4e14\u8d28\u91cf\u4f4e\u4e0b\u3002<\/p>\n<p>\u77e5\u4e4e\u662f\u4e00\u4e2a\u95ee\u7b54\u5e73\u53f0\uff0c\u4f46\u5b83\u662f\u7efc\u5408\u6027\u7684\uff0c\u4e0d\u662f\u4e00\u4e2a\u4e13\u95e8\u63d0\u51fa\u6280\u672f\u95ee\u9898\u7684\u5730\u65b9\uff0c\u8fd9\u610f\u5473\u7740\u63d0\u51fa\u7684\u6280\u672f\u95ee\u9898\u7684\u641c\u7d22\u5ea6\u4f1a\u88ab\u5927\u91cf\u5176\u5b83\u975e\u6280\u672f\u95ee\u9898\u7a00\u91ca\uff0c\u7b80\u5355\u8bf4\u5c31\u662f\u96be\u641c\u5230\u3002<\/p>\n<p>segmentfault \u5e73\u53f0\u662f\u4e00\u4e2a\u4e13\u4e1a\u7684\u6280\u672f\u95ee\u9898\u5e73\u53f0\uff0c\u4f46\u662f\u5341\u5206\u5c0f\u4f17\uff0c\u5f88\u96be\u5728\u641c\u7d22\u6392\u540d\u4e2d\u8fdb\u884c\u7ade\u4e89\u3002<\/p>\n<p>\u767e\u5ea6\u77e5\u9053\u5c31\u66f4\u4e0d\u7528\u8bf4\u4e86\uff0c\u5f7b\u5f7b\u5e95\u5e95\u7684\u6bd2\u7624\u5e73\u53f0\u3002<\/p>\n<p>\u53ef\u80fd\u662f\u6280\u672f\u95ee\u7b54\u9886\u57df\u7684\u7f3a\u5931\uff0c\u5927\u91cf\u7684\u535a\u5ba2\u6587\u7ae0\u6d8c\u73b0\u6765\u586b\u8865\u7a7a\u767d\u3002<\/p>\n<p>\u4f46\u662f\u6587\u7ae0\u672c\u8eab\u5b58\u5728\u4e09\u4e2a\u95ee\u9898\uff1a<\/p>\n<ol>\n<li>\u6587\u7ae0\u662f\u4e2a\u4eba\u7ecf\u5386\u603b\u7ed3\uff0c\u65e0\u6cd5\u9488\u5bf9\u6027\u7684\u89e3\u51b3\u67d0\u4e2a\u95ee\u9898\uff0c\u4f60\u4f1a\u7ecf\u5e38\u641c\u7d22\u67d0\u4e2a\u95ee\u9898\u7684\u9488\u5bf9\u6027\u6587\u7ae0\uff0c\u4f46\u662f\u5927\u91cf\u6587\u7ae0\u6a21\u5f0f\u90fd\u662f\u4f5c\u8005\u957f\u7bc7\u4ecb\u7ecd\u95ee\u9898\u80cc\u666f\uff0c\u66f4\u6709\u751a\u8005\u4ece\u4e0b\u8f7d jdk \u5230\u540e\u53f0\u9879\u76ee\u642d\u5efa\u5230\u524d\u7aef\u642d\u5efa\u6574\u4e2a\u6d41\u7a0b\u90fd\u7ed9\u4f60\u4ecb\u7ecd\u4e00\u904d\uff0c\u8fd9\u6837\u5bfc\u81f4\u7684\u95ee\u9898\u6709\u4ef7\u503c\u7684\u4fe1\u606f\u88ab\u7a00\u91ca\uff0c\u89e3\u51b3\u95ee\u9898\u7684\u6548\u7387\u53d8\u4f4e\u3002<\/li>\n<li>\u6587\u7ae0\u7f16\u5199\u95e8\u69db\u4f4e\uff0c\u6587\u7ae0\u4e0d\u50cf\u95ee\u7b54\u5f62\u5f0f\u80fd\u591f\u8fc7\u6ee4\u5927\u90e8\u5206\u4eba\uff0c\u8fd9\u5c31\u5bfc\u81f4\u6587\u7ae0\u7ecf\u5e38\u51fa\u73b0\u91cd\u590d\u62f7\u8d1d\u4e14\u4f4e\u8d28\u91cf\u7684\u60c5\u51b5\uff0c\u52a0\u4e0a\u7531\u4e8e\u5f88\u591a\u5e73\u53f0\u4e0d\u505a\u8d28\u91cf\u4e0a\u7684\u5ba1\u6838\u548c\u7ba1\u63a7\uff0c\u4f7f\u5f97\u60c5\u51b5\u66f4\u4e3a\u4e25\u91cd\uff0c\u8fd9\u4e5f\u95f4\u63a5\u5bfc\u81f4\u63d0\u51fa\u7684\u95ee\u9898\u53ea\u8981\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c\u641c\u7d22\u96be\u5ea6\u500d\u589e\uff0c\u7ecf\u5e38\u51fa\u73b0\u76f8\u540c\u7684\u7a0b\u5e8f\u62a5\u9519\uff0c\u4e2d\u6587\u73af\u5883\u7ed9\u7684\u6587\u7ae0\u4e94\u82b1\u516b\u95e8\uff0c\u6709\u8bf4\u6539\u8fd9\u4e2a\u6709\u8bf4\u6539\u90a3\u4e2a\uff0c\u4e0d\u5bf9\u9519\u8bef\u6839\u6e90\u8fdb\u884c\u5256\u6790\uff0c\u4e0d\u5bf9\u89e3\u51b3\u65b9\u6848\u8fdb\u884c\u89e3\u91ca\uff0c\u751a\u81f3\u6709\u4e9b\u6587\u7ae0\u7ed9\u51fa\u7684\u89e3\u51b3\u65b9\u6848\u662f\uff1a\u4e0d\u77e5\u9053\u600e\u4e48\u56de\u4e8b\u6539\u4e2a\u4e1c\u897f\u5c31\u597d\u4e86\u3002<\/li>\n<li>\u6807\u9898\u9010\u6e10\u5411\u8425\u9500\u53f7\u9760\u62e2\uff0c\u56e0\u4e3a\u6587\u7ae0\u7684\u5927\u91cf\u6d8c\u73b0\uff0c\u52a0\u4e4b\u4e92\u8054\u7f51\u77ed\u89c6\u9891\u666e\u53ca\u5927\u5bb6\u90fd\u5bf9\u6d41\u91cf\u5f00\u59cb\u6709\u4e86\u65b0\u7684\u8ba4\u8bc6\uff0c\u5f88\u591a\u6587\u7ae0\u4f5c\u8005\u4e5f\u5f00\u59cb\u4f7f\u7528\u5404\u79cd\u5438\u5f15\u773c\u7403\u7684\u6807\u9898\uff0c\u8fd9\u5e76\u4e0d\u662f\u4e00\u4e2a\u597d\u7684\u73b0\u8c61\uff0c\u672c\u8eab\u6807\u9898\u5c31\u6ca1\u6709\u51e0\u4e2a\u5b57\uff0c\u4e3a\u4e86\u5438\u5f15\u773c\u7403\u5728\u6d6a\u8d39\u5b9d\u8d35\u7684\u6587\u5b57\u53bb\u7a00\u91ca\u6587\u7ae0\u7684\u4e3b\u9898\uff0c\u8fd9\u5bf9\u641c\u7d22\u548c\u5206\u8fa8\u6587\u7ae0\u662f\u5426\u662f\u6709\u4ef7\u503c\u7684\u5185\u5bb9\u53c8\u589e\u52a0\u4e86\u96be\u5ea6\u3002<\/li>\n<\/ol>\n<p>\u76f8\u4fe1\u6709\u5f88\u591a\u4eba\u5728\u641c\u7d22\u65f6\uff0c\u4f1a\u53d1\u73b0\uff0c\u5f53\u4f60\u4f7f\u7528\u4e2d\u6587\u641c\u7d22\u65f6\uff0c\u65e0\u8bba\u4f60\u4f7f\u7528\u4ec0\u4e48\u5e73\u53f0\u5165\u53e3\u8fdb\u884c\u641c\u7d22\uff0c\u90fd\u4f1a\u6709\u5927\u91cf\u91cd\u590d\u7684\u6587\u7ae0\u3002<\/p>\n<p>\u65e0\u8bba\u662f\u6709\u8425\u517b\u7684\u6587\u7ae0\uff0c\u8fd8\u662f\u6ca1\u8425\u517b\u7684\u5404\u7c7b\u6587\u7ae0\uff0c\u90fd\u88ab\u5927\u91cf\u7684\u62f7\u8d1d\u590d\u5236\uff0c\u53d1\u5e03\u5728\u5404\u4e2a\u5e73\u53f0\uff0c\u8c01\u4e5f\u5206\u4e0d\u6e05\u5230\u5e95\u54ea\u7bc7\u6587\u7ae0\u8c01\u662f\u539f\u521b\u3002<\/p>\n<p>\u6bd4\u8f83\u6709\u4ee3\u8868\u6027\u7684\u5c31\u662f\u7b80\u4e66\u3001CSDN\u300151 \u7b49\u7b49\u5e73\u53f0\uff0c\u4f17\u591a\u5e73\u53f0\u6253\u7740\u6280\u672f\u5206\u4eab\u7684\u65d7\u53f7\uff0c\u6269\u5927\u5e73\u53f0\u6ce8\u518c\u4eba\u6570\uff0c\u5374\u5bf9\u5e73\u53f0\u5185\u5bb9\u4e0d\u52a0\u4ee5\u7ba1\u63a7\uff0c\u4f4e\u8d28\u91cf\u6587\u7ae0\u5c42\u51fa\u4e0d\u7a77\uff0c\u4e71\u6284\u88ad\u4e71\u8f6c\u8f7d\u6587\u7ae0\u6570\u4e0d\u80dc\u6570\u3002<\/p>\n<p>\u8fd1\u4e24\u5e74\u534e\u4e3a\u3001\u817e\u8baf\u3001\u963f\u91cc\u4e5f\u90fd\u5f00\u59cb\u5efa\u7acb\u81ea\u5df1\u7684\u6280\u672f\u521b\u4f5c\u5e73\u53f0\uff0c\u4f46\u662f\u95ee\u9898\u4e5f\u662f\u4e00\u6837\u7684\u3002<\/p>\n<p>\u4e2d\u6587\u4e92\u8054\u7f51\u4e2d\uff0c\u4e5f\u53ea\u6709\u77e5\u4e4e\u62e5\u6709\u5b8c\u5584\u7684\u8f6c\u53d1\u548c\u4fb5\u6743\u7533\u8bc9\u673a\u5236\uff0c\u6284\u88ad\u8f6c\u8f7d\u7684\u60c5\u51b5\u597d\u4e00\u4e9b\uff0c\u4f46\u662f\u8fd1\u4e24\u5e74\u65f6\u95f4\u5185\u6587\u7ae0\u8d28\u91cf\u4e0b\u6ed1\u4e5f\u5341\u5206\u4e25\u91cd\uff0c\u98ce\u6c14\u4e5f\u6bcf\u51b5\u6108\u4e0b\u3002<\/p>\n<p>\u8fd9\u91cc\u4e0d\u662f\u8bf4\u4e2d\u6587\u4e92\u8054\u7f51\u73af\u5883\u5c31\u5b8c\u5168\u6ca1\u6709\u8d1f\u8d23\u4efb\u7684\u6587\u7ae0\u4f5c\u8005\uff0c\u4f46\u662f\u76f8\u6bd4\u8f83\u4e8e\u56fd\u5185\u7a0b\u5e8f\u5458\u5e9e\u5927\u7684\u57fa\u6570\uff0c\u8fd9\u4e2a\u6570\u91cf\u5b9e\u5728\u4e0d\u8db3\u4ee5\u6539\u53d8\u6211\u4eec\u7684\u4e92\u8054\u7f51\u73af\u5883\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u57fa\u4e8e\u56fd\u5185\u7684\u4e92\u8054\u7f51\u7f51\u7edc\u5b58\u5728\u9650\u5236\u7684\u73af\u5883\u4e0b\uff0c\u6211\u8ba4\u4e3a\u5efa\u7acb\u4e00\u4e2a\u751a\u81f3\u591a\u4e2a\u76f8\u4e92\u7ade\u4e89\u7684\u9ad8\u8d28\u91cf\u7684\u5927\u578b\u4e13\u4e1a\u6280\u672f\u95ee\u7b54\u5e73\u53f0\u662f\u5341\u5206\u5fc5\u8981\u7684\u3002<\/p>\n<h3>\u804a\u804a\u4e2d\u6587\u672c\u8eab<\/h3>\n<p>\u4e2d\u6587\u4e92\u8054\u7f51\u7684\u57fa\u7840\u81ea\u7136\u662f\u4e00\u5927\u6279\u540c\u65f6\u4f7f\u7528\u4e2d\u6587\u7684\u7f51\u6c11\u3002<\/p>\n<p>\u4e2d\u6587\u672c\u8eab\u7ecf\u8fc7\u957f\u65f6\u95f4\u7684\u53d1\u5c55\uff0c\u5386\u53f2\u60a0\u4e45\uff0c\u53d8\u5316\u4e07\u5343\uff0c\u6587\u5316\u5e95\u8574\u5341\u5206\u6df1\u539a\u3002<\/p>\n<p>\u4f46\u662f\u5728\u5f53\u4e0b\u7684\u6280\u672f\u73af\u5883\u4e2d\uff0c\u4e2d\u6587\u5728\u641c\u7d22\u65b9\u9762\u5374\u6709\u7740\u660e\u663e\u7684\u77ed\u677f\u3002<\/p>\n<p>\u90a3\u5c31\u662f\u8868\u8fbe\u6280\u672f\u65b9\u9762\u95ee\u9898\u7684\u4e0d\u51c6\u786e\u6027\uff0c\u4f8b\u5982\u6211\u9047\u5230\u8fc7\u7684\u4e0b\u9762\u4e24\u4e2a\u95ee\u9898\u3002<\/p>\n<h4>\u95ee\u9898\u4e00<\/h4>\n<p>\u4f7f\u7528\u4e2d\u6587\u641c\u7d22\u4e0b\u9762\u7684\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>mybatis \u4e0d\u6267\u884c\u67e5\u8be2 \u83b7\u53d6 sql<\/li>\n<\/ul>\n<p>\u82f1\u6587\u641c\u7d22\uff1a<\/p>\n<ul>\n<li>mybatis get sql without query<\/li>\n<\/ul>\n<p>\u8fd9\u4e24\u4e2a\u95ee\u9898\u76f8\u6bd4\u8f83\u6765\u770b\uff0c\u82f1\u6587\u7684\u8868\u8ff0\u66f4\u52a0\u51c6\u786e\uff0c\u56e0\u4e3a\u82f1\u6587\u4e2d <strong>without<\/strong> \u7684\u542b\u4e49\u662f\u660e\u786e\u7684\uff0c\u5e76\u4e14\u5bb9\u6613\u88ab\u7b97\u6cd5\u7406\u89e3\uff0c\u6b67\u4e49\u8f83\u5c11\uff0c\u5927\u91cf\u6709\u201d\u4e0d\u201c\u3001\u201d\u65e0\u201c\u3001\u201d\u4e0d\u5b58\u5728\u201c\u3001\u201d\u6ca1\u6709\u201c\u8fd9\u4e2a\u542b\u4e49\u7684\u95ee\u9898\uff0c\u90fd\u53ef\u4ee5\u7528 without \u8868\u8ff0\u3002<\/p>\n<p>\u800c\u5728\u4e2d\u6587\u4e2d\uff0c\u201d\u4e0d\u201c\u3001\u201d\u65e0\u201c\u3001\u201d\u4e0d\u5b58\u5728\u201c\u3001\u201d\u6ca1\u6709\u201c\u7684\u8868\u8ff0\u5c31\u8f83\u4e3a\u6a21\u7cca\uff0c\u4f60\u4f1a\u53d1\u73b0\u5b83\u4eec\u4f5c\u4e3a\u8c13\u8bed\uff0c\u65e0\u8bba\u600e\u4e48\u7ec4\u5408\uff0c\u4fee\u9970\u540e\u9762\u7684\u5bbe\u8bed\u65f6\uff0c\u90fd\u4f1a\u548c\u4f60\u60f3\u8981\u8868\u8fbe\u7684\u51c6\u786e\u542b\u4e49\u5dee\u4e86\u4e00\u4e9b\u3002<\/p>\n<p>\u4f53\u73b0\u5728\u641c\u7d22\u65b9\u9762\u5c31\u662f\uff0c\u8fd9\u4e2a\u95ee\u9898\u4f60\u65e0\u6cd5\u7528\u4e2d\u6587\u627e\u5230\u5bf9\u5e94\u7684\u7b54\u6848\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u5728\u544a\u8bc9\u4f60\uff0c\u5982\u4f55\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u83b7\u53d6 sql\u3002<\/p>\n<p>\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u6709\u4eba\u63d0\u8fc7\uff0c\u6807\u9898\u4e3a\u300a<strong><em><em><a href=\"https:\/\/segmentfault.com\/q\/1010000042392081\">mybatis\u7684LambdaQueryWrapper\u4e0d\u914d\u7f6e\u6570\u636e\u5e93\u5982\u4f55\u83b7\u53d6\u5373\u5c06\u6267\u884c\u7684sql?<\/a><\/em><\/strong><\/em>\u300b\u3002\u4e0a\u9762\u7684\u4e2d\u6587\u95ee\u9898\uff0c\u548c\u8fd9\u4e2a\u5b9e\u9645\u63d0\u8fc7\u7684\u95ee\u9898\u610f\u601d\u90fd\u662f\u76f8\u540c\u7684\uff0c\u4f46\u662f\u641c\u7d22\u5f15\u64ce\u5f88\u96be\u544a\u8bc9\u4f60\u8fd9\u4e24\u4e2a\u95ee\u9898\u4e2d\u7684\u201d\u4e0d\u201c\u5230\u5e95\u6709\u4ec0\u4e48\u5173\u8054\u3002<\/p>\n<h4>\u95ee\u9898\u4e8c<\/h4>\n<p>\u4e2d\u6587\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>spring boot \u4f7f\u7528\u4ee3\u7801 \u83b7\u53d6 bean<\/li>\n<\/ul>\n<p>\u82f1\u6587\u641c\u7d22\uff1a<\/p>\n<ul>\n<li>spring boot get bean programmatically<\/li>\n<\/ul>\n<p>\u4e00\u6837\u7684\uff0c\u4e2d\u6587\u5f88\u96be\u76f4\u63a5\u627e\u5230\u7b54\u6848\uff0c\u4f60\u80fd\u770b\u5230\u7684\u57fa\u672c\u5168\u662f\u544a\u8bc9\u4f60 spring boot \u83b7\u53d6 bean \u7684\u51e0\u79cd\u65b9\u6cd5\uff0c\u5176\u4e2d\u5c31\u5305\u542b\u4e86\u4f7f\u7528\u4ee3\u7801\u83b7\u53d6 bean\u3002<\/p>\n<p>\u82f1\u6587\u641c\u7d22\u4e2d\uff0c\u5173\u952e\u8bcd programmatically \u4f18\u52bf\u5341\u5206\u660e\u663e\uff0c\u8868\u8fbe\u7684\u542b\u4e49\u51c6\u786e\u3002<\/p>\n<p>\u76f8\u5e94\u7684\uff0c\u4e2d\u6587\u7684\u542b\u4e49\u5c31\u4e0d\u662f\u90a3\u4e48\u51c6\u786e\u4e86\uff0cprogrammatically \u5728\u4e2d\u6587\u4e2d\u53ef\u4ee5\u7ffb\u8bd1\u6210\u5404\u79cd\u8868\u8fbe\u65b9\u5f0f\uff0c\u201c\u7f16\u7a0b\u5f0f\u201d\u3001\u201c\u7528\u4ee3\u7801\u201d\u3001\u201c\u4f7f\u7528\u4ee3\u7801\u201d\u3001\u201c\u4ee3\u7801\u201d\u3001\u201c\u7eaf\u4ee3\u7801\u201d\uff0c\u5176\u8868\u8fbe\u7684\u542b\u4e49\u7c7b\u4f3c\uff0c\u4f46\u603b\u5728\u5173\u952e\u542b\u4e49\u4e2d\u603b\u662f\u5dee\u4e86\u90a3\u4e48\u4e00\u70b9\u3002<\/p>\n<blockquote><p><strong>without<\/strong> \u548c <strong>programmatically<\/strong> \u8fd9\u4e24\u4e2a\u5173\u952e\u8bcd\u4f1a\u7ecf\u5e38\u7528\u5230\uff0c\u5b83\u4eec\u5728\u6211\u641c\u7d22\u7684\u65f6\u5019\u4e5f\u63d0\u4f9b\u4e86\u5f88\u591a\u7684\u5e2e\u52a9\u3002<\/p><\/blockquote>\n<h2>\u4e8c. \u7a0b\u5e8f\u5458\u5e94\u8be5\u5177\u5907\u4ec0\u4e48\u641c\u7d22\u6280\u80fd<\/h2>\n<h3>\u6362\u4e00\u4e2a\u641c\u7d22\u5f15\u64ce<\/h3>\n<p>\u5b9e\u9645\u4e0a\u9664\u4e86\u7ffb\u5899\u624d\u80fd\u8bbf\u95ee\u7684\u8c37\u6b4c\uff0c\u5fc5\u5e94\u4e5f\u662f\u4e00\u4e2a\u9009\u62e9\u3002<\/p>\n<p>\u5982\u679c\u6709\u6761\u4ef6\uff0c\u8fd8\u662f\u9996\u9009\u8c37\u6b4c\u3002<\/p>\n<p>\u4e00\u4e2a\u5408\u683c\u7684\u7a0b\u5e8f\u5458\uff0c\u5b9e\u5728\u662f\u6ca1\u6709\u4efb\u4f55\u7406\u7531\u518d\u4f7f\u7528\u767e\u5ea6\uff0c\u4e22\u5f03\u767e\u5ea6\uff0c\u610f\u4e49\u4e0d\u4e9a\u4e8e\u8bf4\u662f\u4f60\u7f16\u7a0b\u8def\u4e0a\u7684\u4e00\u6b21\u5f00\u7a8d\uff0c\u662f\u4f60\u601d\u7ef4\u4e0a\u7684\u4e00\u6b21\u5347\u534e\u3002<\/p>\n<h3>\u5c3d\u91cf\u5c11\u7684\u4f9d\u8d56\u4e2d\u6587<\/h3>\n<p>\u80fd\u591f\u8e0f\u8db3\u7f16\u7a0b\u884c\u4e1a\u7684\u4eba\uff0c\u80af\u5b9a\u662f\u6709\u4e00\u70b9\u82f1\u6587\u57fa\u7840\u7684\u3002<\/p>\n<p>\u6211\u53d1\u73b0\u5927\u90e8\u5206\u7684\u7a0b\u5e8f\u5458\u5e76\u4e0d\u662f\u4e0d\u4f1a\u82f1\u6587\uff0c\u5e73\u65f6\u90fd\u770b\u8fc7\u4e0d\u5c11\u7684\u82f1\u6587\u8bed\u8a00\u7535\u5f71\uff0c\u7f16\u7a0b\u4e2d\u7684\u4e00\u4e9b\u5355\u8bcd\u90fd\u662f\u82f1\u6587\uff0c\u5927\u90e8\u5206\u6d4f\u89c8\u5668\u90fd\u5e26\u6709\u7ffb\u8bd1\u529f\u80fd\uff0c\u56e0\u6b64\u4e0d\u5b58\u5728\u4e0d\u4f1a\u82f1\u6587\u8fd9\u4ef6\u4e8b\uff0c\u53ea\u662f\u719f\u6089\u4e0e\u4e0d\u719f\u6089\u7684\u533a\u522b\u3002<\/p>\n<p>\u66f4\u591a\u7684\u65f6\u5019\uff0c\u662f\u672c\u8eab\u5728\u60e7\u6015\u672a\u77e5\u7684\u4e8b\u7269\uff0c\u53ea\u8981\u8fc8\u51fa\u7b2c\u4e00\u6b65\uff0c\u66f4\u52a0\u5e7f\u9614\u7684\u4e16\u754c\u5c31\u9690\u85cf\u5728\u4e2d\u6587\u4e4b\u5916\uff0c\u662f\u7684\u76ee\u524d\u7684\u4e2d\u6587\u4e16\u754c\u5f88\u532e\u4e4f\u3002<\/p>\n<p>\u5728\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\uff0c\u5927\u91cf\u82f1\u6587\u5355\u8bcd\u5b9e\u9645\u4e0a\u90fd\u662f\u91cd\u590d\u7684\uff0c\u5e38\u89c1\u7684\u4f8b\u5982 <em>exception\u3001model\u3001test\u3001monitor\u3001listener\u3001factory<\/em>\u7b49\u7b49\u3002\u5f53\u4f60\u79ef\u7d2f\u4e86\u4e00\u5b9a\u7a0b\u5ea6\u7684\u5355\u8bcd\uff0c\u5f88\u591a\u82f1\u6587\u542b\u4e49\u901a\u8fc7\u7b80\u5355\u7684\u7ec4\u5408\u5c31\u80fd\u5927\u81f4\u731c\u6d4b\u51fa\u6765\u3002<\/p>\n<p>\u8fd9\u4e0d\u4ec5\u80fd\u5e2e\u52a9\u4f60\u5feb\u901f\u89e3\u51b3\u95ee\u9898\uff0c\u8fd8\u80fd\u5e2e\u52a9\u4f60\u5728\u4e0d\u5f97\u4e0d\u7ffb\u9605\u6e90\u7801\u65f6\uff0c\u66f4\u597d\u7684\u7406\u89e3\u4f5c\u8005\u7684\u610f\u56fe\u3002<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000042675137\">https:\/\/segmentfault.com\/a\/1190000042675137<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7a0b\u5e8f\u5458\u5982\u4f55\u641c\u7d22 \u5f53\u4eca\u7a0b\u5e8f\u5458\u53ef\u4ee5\u8bf4\u5b8c\u5168\u79bb\u4e0d\u5f00\u641c\u7d22\u5de5\u5177\uff0c\u4ece\u4e00\u4e2a\u9879\u76ee\u8981\u4f7f\u7528\u4ec0\u4e48\u5de5\u5177\uff0c\u5230\u4e00\u6bb5\u4ee3\u7801\u600e\u4e48\u5b9e\u73b0\uff0c\u518d\u5230\u4e00\u4e2a\u95ee\u9898 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006716","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006716"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006716\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}