
{"id":1342,"date":"2022-02-26T17:56:46","date_gmt":"2022-02-26T09:56:46","guid":{"rendered":"http:\/\/dba.qishuo.xin\/?p=1342"},"modified":"2022-02-26T18:00:21","modified_gmt":"2022-02-26T10:00:21","slug":"error-creating-bean-with-name-namedparameterjdbctemplate","status":"publish","type":"post","link":"http:\/\/dba.qishuo.xin\/?p=1342","title":{"rendered":"Error creating bean with name &#8216;namedParameterJdbcTemplate&#8217;\u2026\u2026"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<label for=\"ez-toc-cssicon-toggle-item-69e1969067054\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69e1969067054\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#1_%E9%97%AE%E9%A2%98%E7%AE%80%E8%BF%B0\" >1. \u95ee\u9898\u7b80\u8ff0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#2_%E6%8A%A5%E9%94%99%E4%BF%A1%E6%81%AF\" >2. \u62a5\u9519\u4fe1\u606f<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#21_%E6%8A%A5%E9%94%99%E5%86%85%E5%AE%B9\" >2.1. \u62a5\u9519\u5185\u5bb9<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#22_%E6%8A%A5%E9%94%99%E6%88%AA%E5%9B%BE\" >2.2. \u62a5\u9519\u622a\u56fe<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#3_%E9%97%AE%E9%A2%98%E5%88%86%E6%9E%90\" >3. \u95ee\u9898\u5206\u6790<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#4_%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3\" >4. \u95ee\u9898\u89e3\u51b3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#5_%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\" >5. \u95ee\u9898\u603b\u7ed3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"http:\/\/dba.qishuo.xin\/?p=1342\/#6_%E5%85%B3%E8%81%94%E6%88%96%E5%8F%82%E8%80%83%E6%96%87%E6%A1%A3\" >6. \u5173\u8054\u6216\u53c2\u8003\u6587\u6863<\/a><\/li><\/ul><\/nav><\/div>\n<h3><span class=\"ez-toc-section\" id=\"1_%E9%97%AE%E9%A2%98%E7%AE%80%E8%BF%B0\"><\/span>1. \u95ee\u9898\u7b80\u8ff0<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>java\u9879\u76ee\u542f\u52a8\u65f6\u62a5 Error creating bean with name 'namedParameterJdbcTemplate' \u2026\u2026 \u9519\u8bef\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2_%E6%8A%A5%E9%94%99%E4%BF%A1%E6%81%AF\"><\/span>2. \u62a5\u9519\u4fe1\u606f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<h4><span class=\"ez-toc-section\" id=\"21_%E6%8A%A5%E9%94%99%E5%86%85%E5%AE%B9\"><\/span>2.1. \u62a5\u9519\u5185\u5bb9<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<pre><code class=\"line-numbers\">Error creating bean with name 'namedParameterJdbcTemplate' defined in class path resource [org\/springframework\/boot\/autoconfigure\/jdbc\/NamedParameterJdbcTemplateConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate]: Factory method 'namedParameterJdbcTemplate' threw exception; nested exception is java.lang.NoClassDefFoundError: org\/springframework\/util\/ConcurrentLruCache\n<\/code><\/pre>\n<h4><span class=\"ez-toc-section\" id=\"22_%E6%8A%A5%E9%94%99%E6%88%AA%E5%9B%BE\"><\/span>2.2. \u62a5\u9519\u622a\u56fe<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/02\/wp_editor_md_695576ece64288deed7ca0a1b51ce831.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/02\/wp_editor_md_695576ece64288deed7ca0a1b51ce831.jpg\" alt=\"\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"3_%E9%97%AE%E9%A2%98%E5%88%86%E6%9E%90\"><\/span>3. \u95ee\u9898\u5206\u6790<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>pom\u6587\u4ef6\u4e2d\u540c\u65f6\u5f15\u5165\u4e86spring-boot-starter-jdbc\u4e0espring-jdbc\u8fd9\u4e24\u4e2a\u4f9d\u8d56\u3002<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4_%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3\"><\/span>4. \u95ee\u9898\u89e3\u51b3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u5728pom\u6587\u4ef6\u79fb\u9664 spring-jdbc \u8fd9\u4e2a\u4f9d\u8d56\u3002<\/p>\n<p><a href=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/02\/wp_editor_md_45c4df1e955b918d8b1a04f1b3bbd5b3.jpg\" data-fancybox=\"images\" data-fancybox=\"images\"><img decoding=\"async\" src=\"http:\/\/dba.qishuo.xin\/wp-content\/uploads\/2022\/02\/wp_editor_md_45c4df1e955b918d8b1a04f1b3bbd5b3.jpg\" alt=\"\" \/><\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"5_%E9%97%AE%E9%A2%98%E6%80%BB%E7%BB%93\"><\/span>5. \u95ee\u9898\u603b\u7ed3<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style='color:red'> \u4e00\u5b9a\u8981\u4ed4\u7ec6\u68c0\u67e5\u62a5\u9519\u4fe1\u606f\u3002<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"6_%E5%85%B3%E8%81%94%E6%88%96%E5%8F%82%E8%80%83%E6%96%87%E6%A1%A3\"><\/span>6. \u5173\u8054\u6216\u53c2\u8003\u6587\u6863<span class=\"ez-toc-section-end\"><\/span><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>1. \u95ee\u9898\u7b80\u8ff0 java\u9879\u76ee\u542f\u52a8\u65f6\u62a5 Error &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[178],"tags":[43,187],"class_list":["post-1342","post","type-post","status-publish","format-standard","hentry","category-java","tag-error","tag-namedparameterjdbctemplate"],"_links":{"self":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/1342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1342"}],"version-history":[{"count":2,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/1342\/revisions"}],"predecessor-version":[{"id":1344,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=\/wp\/v2\/posts\/1342\/revisions\/1344"}],"wp:attachment":[{"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1342"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dba.qishuo.xin\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}