{"id":67035,"date":"2026-01-28T02:24:40","date_gmt":"2026-01-27T18:24:40","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/67035.html"},"modified":"2026-01-28T02:24:40","modified_gmt":"2026-01-27T18:24:40","slug":"%e6%8e%a5%e6%89%8b%e4%b8%a4%e5%8d%83%e8%a1%8c%e7%a5%96%e4%bc%a0%e4%bb%a3%e7%a0%81%ef%bc%9a%e5%a6%82%e4%bd%95%e4%bb%8e%e5%b1%8e%e5%b1%b1%e4%b8%ad%e6%8b%af%e6%95%91%e5%90%8e%e7%ab%af","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/67035.html","title":{"rendered":"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee"},"content":{"rendered":"<h2><\/h2>\n<p>\u5173\u952e\u8bcd&#xff1a;\u4ee3\u7801\u91cd\u6784\u3001JdbcTemplate\u3001SQL \u7ba1\u7406\u3001Map \u6ee5\u7528\u3001\u53ef\u7ef4\u62a4\u6027<\/p>\n<p>\u53bb\u5e74\u63a5\u624b\u4e86\u4e00\u4e2a\u540e\u7aef\u8001\u9879\u76ee&#xff0c;\u7ffb\u5f00\u5176\u4e2d\u4e00\u4e2a\u4e1a\u52a1\u65b9\u6cd5\u65f6&#xff0c;\u6211\u6123\u4f4f\u4e86\u2014\u2014\u4e00\u4e2a\u65b9\u6cd5\u5c45\u7136\u5199\u4e86\u5dee\u4e0d\u591a 2000 \u884c&#xff0c;\u5bc6\u5bc6\u9ebb\u9ebb\u7684 jdbcTemplate.queryForList\u3001\u6ee1\u5c4f\u7684 Map&lt;String, Object&gt;\u3001\u7a7f\u63d2\u7740\u5404\u79cd put \u548c get&#xff0c;\u8fde\u4e00\u884c\u50cf\u6837\u7684\u6ce8\u91ca\u90fd\u6ca1\u6709\u3002\u66f4\u8ba9\u4eba\u56f0\u60d1\u7684\u662f&#xff0c;\u9879\u76ee\u4e2d\u540c\u65f6\u5b58\u5728\u539f\u751f JdbcTemplate \u5199\u6b7b SQL \u548c MyBatis Mapper \u8c03\u7528\u4e24\u79cd\u65b9\u5f0f&#xff0c;\u98ce\u683c\u6df7\u4e71&#xff0c;\u9605\u8bfb\u8d77\u6765\u50cf\u662f\u5728\u7834\u8bd1\u5bc6\u7801\u3002<\/p>\n<p>\u4eca\u5929\u6211\u4eec\u5c31\u4ee5\u8fd9\u6bb5\u4ee3\u7801\u4e3a\u4f8b&#xff0c;\u804a\u804a\u8fd9\u79cd\u201c\u7956\u4f20\u4ee3\u7801\u201d\u7684\u7279\u70b9\u3001\u7f3a\u70b9&#xff0c;\u4ee5\u53ca\u5982\u4f55\u9010\u6b65\u6539\u8fdb\u3002<\/p>\n<h3>\u4ee3\u7801\u7279\u70b9\u5206\u6790<\/h3>\n<h4>\u65b9\u6cd5\u8fc7\u957f<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260127182439-697902e76985e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>SQL \u5168\u5199\u5728 Java \u4ee3\u7801\u4e2d<\/h4>\n<p><span class=\"token class-name\">String<\/span> sql <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;SELECT t1.* FROM mact_node t1 JOIN &#8230;&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token class-name\">List<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">Map<\/span><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Object<\/span><span class=\"token punctuation\">&gt;<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> list <span class=\"token operator\">&#061;<\/span> jdbcTemplate<span class=\"token punctuation\">.<\/span><span class=\"token function\">queryForList<\/span><span class=\"token punctuation\">(<\/span>sql<span class=\"token punctuation\">,<\/span> projNo<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u628a SQL \u786c\u7f16\u7801\u5728 Java \u4ee3\u7801\u4e2d&#xff0c;\u4e00\u65e6 SQL \u9700\u8981\u4fee\u6539&#xff0c;\u5fc5\u987b\u91cd\u65b0\u7f16\u8bd1\u90e8\u7f72\u3002<\/p>\n<h4>\u8fd4\u56de\u503c\u5168\u7528 Map&lt;String, Object&gt;<\/h4>\n<p><span class=\"token keyword\">for<\/span><span class=\"token punctuation\">(<\/span><span class=\"token class-name\">Map<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token class-name\">String<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token class-name\">Object<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> map <span class=\"token operator\">:<\/span> list<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">String<\/span> node <span class=\"token operator\">&#061;<\/span> map<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;MACT_NODE&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">toString<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">int<\/span> planLock <span class=\"token operator\">&#061;<\/span> map<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;is_plan_lock&#034;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span> <span class=\"token operator\">?<\/span> <span class=\"token number\">0<\/span> <span class=\"token operator\">:<\/span> <span class=\"token class-name\">Integer<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">parseInt<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>\u903b\u8f91\u91cd\u590d&#xff0c;\u4ee3\u7801\u5197\u4f59<\/h4>\n<p>\u540c\u6837\u7684\u65b9\u6cd5\u88ab\u53cd\u590d\u8c03\u7528&#xff0c;\u53c2\u6570\u7a0d\u6709\u4e0d\u540c&#xff0c;\u4f46\u903b\u8f91\u7ed3\u6784\u51e0\u4e4e\u4e00\u81f4\u3002<\/p>\n<h4>\u4e8b\u52a1\u6ce8\u89e3 &#043; \u957f\u65b9\u6cd5<\/h4>\n<p>\u4e00\u4e2a\u65b9\u6cd5\u505a\u592a\u591a\u4e8b&#xff0c;\u8fdd\u80cc\u5355\u4e00\u804c\u8d23\u539f\u5219\u3002<\/p>\n<p><span class=\"token annotation punctuation\">&#064;Transactional<\/span><span class=\"token punctuation\">(<\/span>rollbackFor <span class=\"token operator\">&#061;<\/span> <span class=\"token class-name\">Exception<\/span><span class=\"token punctuation\">.<\/span><span class=\"token keyword\">class<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">public<\/span> <span class=\"token keyword\">boolean<\/span> <span class=\"token function\">dataHandleDetail<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">throws<\/span> <span class=\"token class-name\">Exception<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ 2000&#043; \u884c\u4ee3\u7801<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>\u6df7\u6742\u7684\u6570\u636e\u8bbf\u95ee\u65b9\u5f0f<\/h4>\n<ul>\n<li>\u4e00\u90e8\u5206\u7528 jdbcTemplate \u76f4\u63a5\u6267\u884c SQL<\/li>\n<li>\u53e6\u4e00\u90e8\u5206\u7528 mactPlanService.list() \u8c03\u7528 MyBatis Mapper<\/li>\n<li>\u98ce\u683c\u4e0d\u7edf\u4e00&#xff0c;\u7ef4\u62a4\u6210\u672c\u9ad8\u3002<\/li>\n<\/ul>\n<h3>\u8fd9\u79cd\u4ee3\u7801\u7684\u4e3b\u8981\u7f3a\u70b9<\/h3>\n<table>\n<tr>\u7f3a\u70b9\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u53ef\u8bfb\u6027\u5dee<\/td>\n<td>\u5b57\u6bb5\u540d\u3001SQL \u903b\u8f91\u3001\u4e1a\u52a1\u903b\u8f91\u6df7\u5728\u4e00\u8d77&#xff0c;\u96be\u4ee5\u5feb\u901f\u7406\u89e3<\/td>\n<\/tr>\n<tr>\n<td>\u53ef\u7ef4\u62a4\u6027\u4f4e<\/td>\n<td>SQL \u4fee\u6539\u9700\u8981\u6539 Java \u4ee3\u7801&#xff0c;\u65e0\u7248\u672c\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u7c7b\u578b\u4e0d\u5b89\u5168<\/td>\n<td>map.get(&#034;\u5b57\u6bb5&#034;) \u5bb9\u6613\u62fc\u5199\u9519\u8bef&#xff0c;\u7f16\u8bd1\u671f\u65e0\u6cd5\u53d1\u73b0<\/td>\n<\/tr>\n<tr>\n<td>\u96be\u4ee5\u590d\u7528<\/td>\n<td>\u76f8\u4f3c\u903b\u8f91\u91cd\u590d\u7f16\u5199&#xff0c;\u4fee\u6539\u65f6\u9700\u591a\u5904\u540c\u6b65<\/td>\n<\/tr>\n<tr>\n<td>\u96be\u4ee5\u6d4b\u8bd5<\/td>\n<td>\u65b9\u6cd5\u8fc7\u957f&#xff0c;\u4f9d\u8d56\u6570\u636e\u5e93\u72b6\u6001&#xff0c;\u5355\u5143\u6d4b\u8bd5\u56f0\u96be<\/td>\n<\/tr>\n<tr>\n<td>\u4e8b\u52a1\u8fb9\u754c\u6a21\u7cca<\/td>\n<td>\u4e00\u4e2a\u65b9\u6cd5\u505a\u592a\u591a\u4e8b&#xff0c;\u4e8b\u52a1\u53ef\u80fd\u8fc7\u5927\u6216\u8fc7\u957f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u6539\u8fdb\u91cd\u6784\u65b9\u5411<\/h3>\n<p>SQL \u5916\u7f6e\u5316&#xff0c;\u4f7f\u7528 MyBatis XML<\/p>\n<p>\u4f18\u70b9&#xff1a;SQL \u4e0e Java \u4ee3\u7801\u89e3\u8026\u3001\u652f\u6301\u52a8\u6001 SQL\u3001\u4fbf\u4e8e SQL \u7248\u672c\u7ba1\u7406<\/p>\n<p>\u4f7f\u7528 DTO \u6216\u5b9e\u4f53\u7c7b\u4ee3\u66ff Map<\/p>\n<p>\u4f18\u70b9&#xff1a;\u7c7b\u578b\u5b89\u5168\u3001IDE \u81ea\u52a8\u63d0\u793a\u3001\u4fbf\u4e8e Lombok \u7b80\u5316\u4ee3\u7801<\/p>\n<p>\u62c6\u5206\u957f\u65b9\u6cd5&#xff0c;\u9075\u5faa\u5355\u4e00\u804c\u8d23<\/p>\n<p>\u5c06\u65b9\u6cd5\u6309\u529f\u80fd\u62c6\u5206\u4e3a\u591a\u4e2a\u5c0f\u65b9\u6cd5&#xff1a;\u6bcf\u4e2a\u65b9\u6cd5j\u5c3d\u91cf\u4e0d\u8d85\u8fc7 50 \u884c&#xff0c;\u804c\u8d23\u660e\u786e\u3002<\/p>\n<p>\u5f15\u5165\u670d\u52a1\u5c42\u4e0e\u4ed3\u50a8\u5c42<\/p>\n<p>Service \u5c42&#xff1a;\u8d1f\u8d23\u4e1a\u52a1\u903b\u8f91\u7f16\u6392<br \/>\nRepository \u5c42&#xff1a;\u8d1f\u8d23\u6570\u636e\u8bbf\u95ee&#xff08;\u4f7f\u7528 MyBatis&#xff09;<\/p>\n<p>\u7edf\u4e00\u6570\u636e\u8bbf\u95ee\u65b9\u5f0f<\/p>\n<p>\u4f7f\u7528 MyBatis&#xff0c;\u907f\u514d\u6df7\u7528\u591a\u79cd\u8bbf\u95ee\u65b9\u5f0f\u3002<\/p>\n<p>\u6dfb\u52a0\u6ce8\u91ca\u4e0e\u6587\u6863<\/p>\n<p>\u7279\u522b\u662f\u590d\u6742\u4e1a\u52a1\u89c4\u5219\u5e94\u6dfb\u52a0\u6e05\u6670\u6ce8\u91ca\u3002<\/p>\n<p>\u5f15\u5165\u5355\u5143\u6d4b\u8bd5\u4e0e\u96c6\u6210\u6d4b\u8bd5<\/p>\n<p>\u5bf9\u62c6\u5206\u540e\u7684\u5c0f\u65b9\u6cd5\u7f16\u5199\u5355\u5143\u6d4b\u8bd5&#xff0c;\u5bf9\u6574\u4f53\u6d41\u7a0b\u7f16\u5199\u96c6\u6210\u6d4b\u8bd5\u3002<\/p>\n<hr \/>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u9762\u5bf9\u8fd9\u79cd\u201c\u7956\u4f20\u4ee3\u7801\u201d&#xff0c;\u4e0d\u8981\u8bd5\u56fe\u4e00\u6b21\u6027\u5168\u90e8\u91cd\u6784\u3002\u53ef\u4ee5\u6309\u4ee5\u4e0b\u6b65\u9aa4\u63a8\u8fdb&#xff1a;<\/p>\n<li>\u5148\u7406\u89e3\u4e1a\u52a1&#xff1a;\u641e\u6e05\u695a\u8fd9\u4e9b SQL \u548c Map \u5230\u5e95\u5728\u505a\u4ec0\u4e48<\/li>\n<li>\u5c0f\u6b65\u91cd\u6784&#xff1a;\u6bcf\u6b21\u53ea\u6539\u4e00\u4e2a\u5c0f\u6a21\u5757&#xff0c;\u6bd4\u5982\u5148\u62bd\u53d6\u4e00\u4e2a SQL \u5230 Mapper<\/li>\n<li>\u9010\u6b65\u66ff\u6362&#xff1a;\u4ece\u9891\u7e41\u4fee\u6539\u6216 Bug \u591a\u7684\u90e8\u5206\u5f00\u59cb\u66ff\u6362<\/li>\n<li>\u8865\u5145\u6d4b\u8bd5&#xff1a;\u6bcf\u91cd\u6784\u4e00\u4e2a\u6a21\u5757&#xff0c;\u8865\u5145\u76f8\u5e94\u6d4b\u8bd5<\/li>\n<p>\u91cd\u6784\u4e0d\u662f\u4e00\u8e74\u800c\u5c31\u7684\u5de5\u7a0b&#xff0c;\u800c\u662f\u6301\u7eed\u4f18\u5316\u7684\u8fc7\u7a0b\u3002\u6bcf\u4e00\u70b9\u6539\u8fdb&#xff0c;\u90fd\u662f\u5bf9\u7cfb\u7edf\u53ef\u7ef4\u62a4\u6027\u7684\u6295\u8d44\u3002<\/p>\n<hr \/>\n<p>\u5982\u679c\u4f60\u4e5f\u6b63\u5728\u9762\u5bf9\u7c7b\u4f3c\u7684\u201c\u7956\u4f20\u4ee3\u7801\u201d&#xff0c;\u6b22\u8fce\u5728\u8bc4\u8bba\u533a\u5206\u4eab\u4f60\u7684\u7ecf\u5386\u548c\u5e94\u5bf9\u7b56\u7565\u3002\u8ba9\u6211\u4eec\u4e00\u8d77\u5728\u4ee3\u7801\u7684\u5e9f\u589f\u4e0a&#xff0c;\u91cd\u5efa\u79e9\u5e8f\u4e0e\u6e05\u6670\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u952e\u8bcd&#xff1a;\u4ee3\u7801\u91cd\u6784\u3001JdbcTemplate\u3001SQL \u7ba1\u7406\u3001Map \u6ee5\u7528\u3001\u53ef\u7ef4\u62a4\u6027\u53bb\u5e74\u63a5\u624b\u4e86\u4e00\u4e2a\u540e\u7aef\u8001\u9879\u76ee&#xff0c;\u7ffb\u5f00\u5176\u4e2d\u4e00\u4e2a\u4e1a\u52a1\u65b9\u6cd5\u65f6&#xff0c;\u6211\u6123\u4f4f\u4e86\u2014\u2014\u4e00\u4e2a\u65b9\u6cd5\u5c45\u7136\u5199\u4e86\u5dee\u4e0d\u591a 2000 \u884c&#xff0c;\u5bc6\u5bc6\u9ebb\u9ebb\u7684 jdbcTemplate.queryForList\u3001\u6ee1\u5c4f\u7684 Map\u3001\u7a7f\u63d2\u7740\u5404\u79cd put \u548c get&#xff0c;\u8fde\u4e00\u884c\u50cf\u6837\u7684\u6ce8\u91ca\u90fd\u6ca1\u6709\u3002\u66f4\u8ba9\u4eba\u56f0\u60d1\u7684\u662f&#xff0c;\u9879\u76ee\u4e2d\u540c\u65f6\u5b58\u5728\u539f\u751f JdbcTe<\/p>\n","protected":false},"author":2,"featured_media":67034,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99,1769,292],"topic":[],"class_list":["post-67035","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java","tag-mybatis","tag-292"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/67035.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5173\u952e\u8bcd&#xff1a;\u4ee3\u7801\u91cd\u6784\u3001JdbcTemplate\u3001SQL \u7ba1\u7406\u3001Map \u6ee5\u7528\u3001\u53ef\u7ef4\u62a4\u6027\u53bb\u5e74\u63a5\u624b\u4e86\u4e00\u4e2a\u540e\u7aef\u8001\u9879\u76ee&#xff0c;\u7ffb\u5f00\u5176\u4e2d\u4e00\u4e2a\u4e1a\u52a1\u65b9\u6cd5\u65f6&#xff0c;\u6211\u6123\u4f4f\u4e86\u2014\u2014\u4e00\u4e2a\u65b9\u6cd5\u5c45\u7136\u5199\u4e86\u5dee\u4e0d\u591a 2000 \u884c&#xff0c;\u5bc6\u5bc6\u9ebb\u9ebb\u7684 jdbcTemplate.queryForList\u3001\u6ee1\u5c4f\u7684 Map\u3001\u7a7f\u63d2\u7740\u5404\u79cd put \u548c get&#xff0c;\u8fde\u4e00\u884c\u50cf\u6837\u7684\u6ce8\u91ca\u90fd\u6ca1\u6709\u3002\u66f4\u8ba9\u4eba\u56f0\u60d1\u7684\u662f&#xff0c;\u9879\u76ee\u4e2d\u540c\u65f6\u5b58\u5728\u539f\u751f JdbcTe\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/67035.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-27T18:24:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260127182439-697902e76985e.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/67035.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/67035.html\",\"name\":\"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-27T18:24:40+00:00\",\"dateModified\":\"2026-01-27T18:24:40+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/67035.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/67035.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/67035.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/67035.html","og_locale":"zh_CN","og_type":"article","og_title":"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5173\u952e\u8bcd&#xff1a;\u4ee3\u7801\u91cd\u6784\u3001JdbcTemplate\u3001SQL \u7ba1\u7406\u3001Map \u6ee5\u7528\u3001\u53ef\u7ef4\u62a4\u6027\u53bb\u5e74\u63a5\u624b\u4e86\u4e00\u4e2a\u540e\u7aef\u8001\u9879\u76ee&#xff0c;\u7ffb\u5f00\u5176\u4e2d\u4e00\u4e2a\u4e1a\u52a1\u65b9\u6cd5\u65f6&#xff0c;\u6211\u6123\u4f4f\u4e86\u2014\u2014\u4e00\u4e2a\u65b9\u6cd5\u5c45\u7136\u5199\u4e86\u5dee\u4e0d\u591a 2000 \u884c&#xff0c;\u5bc6\u5bc6\u9ebb\u9ebb\u7684 jdbcTemplate.queryForList\u3001\u6ee1\u5c4f\u7684 Map\u3001\u7a7f\u63d2\u7740\u5404\u79cd put \u548c get&#xff0c;\u8fde\u4e00\u884c\u50cf\u6837\u7684\u6ce8\u91ca\u90fd\u6ca1\u6709\u3002\u66f4\u8ba9\u4eba\u56f0\u60d1\u7684\u662f&#xff0c;\u9879\u76ee\u4e2d\u540c\u65f6\u5b58\u5728\u539f\u751f JdbcTe","og_url":"https:\/\/www.wsisp.com\/helps\/67035.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-27T18:24:40+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260127182439-697902e76985e.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/67035.html","url":"https:\/\/www.wsisp.com\/helps\/67035.html","name":"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-27T18:24:40+00:00","dateModified":"2026-01-27T18:24:40+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/67035.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/67035.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/67035.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u63a5\u624b\u4e24\u5343\u884c\u7956\u4f20\u4ee3\u7801\uff1a\u5982\u4f55\u4ece\u201c\u5c4e\u5c71\u201d\u4e2d\u62ef\u6551\u540e\u7aef\u8001\u9879\u76ee"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/67035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=67035"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/67035\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/67034"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=67035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=67035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=67035"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=67035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}