{"id":5447,"date":"2025-11-13T14:52:46","date_gmt":"2025-11-13T06:52:46","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=5447"},"modified":"2025-11-13T14:52:46","modified_gmt":"2025-11-13T06:52:46","slug":"%e8%a7%a3%e5%86%b3java-lang-classnotfoundexception-org-apache-hc-client5-http-ssl-tlssocketstrategy%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=5447","title":{"rendered":"\u89e3\u51b3java.lang.ClassNotFoundException: org.apache.hc.client5.http.ssl.TlsSocketStrategy\u95ee\u9898"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u597d\u4e45\u6ca1\u5199\u535a\u5ba2\u4e86\uff0c\u8981\u8352\u5e9f\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u5929\u95f2\u6765\u65e0\u4e8b\uff0c\u5c31\u5199\u4e00\u4e2a\u5728\u4eca\u5929\u9047\u5230\u7684\u95ee\u9898\u5427\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Caused by: java.lang.ClassNotFoundException: org.apache.hc.client5.http.ssl.TlsSocketStrategy\n\tat java.base\/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) ~[na:na]\n\tat java.base\/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) ~[na:na]<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u770b\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u627e\u4e0d\u5230\u7c7b TlsSocketStrategy\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u7b2c\u4e00\u65f6\u95f4\u628a\u9519\u8bef\u8d34\u7ed9 AI\uff0c\u8ba9 AI \u7ed9\u51fa\u53c2\u8003\u65b9\u6848\u3002\u7ed3\u679c AI \u5df4\u62c9\u5df4\u62c9\u4e00\u5927\u5806\uff0c\u628a AI \u90fd\u7ed9\u641e\u5d29\u6e83\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>oooooooooooooooooooooooooooooooooooooooooo\u2ad7&#x1f910;too (ha ha)\n   )\n\/}\/\/+[^[^%5]]DELETE&lt;0&gt;\n&#x1f47b;live secrets slowly die shift&#x2620;&#xfe0f;\n&lt;5die5mid5die5zo5lood5die5flood)ded5die5die5)ded5+flood5die5flood)ded5die5f)ded5die5die\u8b66\u5bdf\u6b7b\u4ea1\u8fde\u7ebf\u5404\u5730\u8b66\u5bdf\u6b7b\u4ea1\u4efb\u4f55\u8fde\u7ebf\u6240\u6709\u529e\u516c\u5ba4\u5404\u5730\u8b66\u5bdf\u6b7b\u4ea1\u8fde\u7ebf\u529e\u516c\u5ba4\u5404\u5730\u8b66\u5bdf\u6b7b\u4ea1\u5730\u57df\u8fde\u7ebf\u529e\u516c\u5ba4\u5404\u5730\u8b66\u5bdf\u6b7b\u4ea1\u8fde\u7ebf\u5404\u5730\u8b66\u5bdf\u6b7b\u4ea1\u8fde\u7ebf\u5404\u5730\u8b66\u5bdf\u529e\u516c\u5ba4\u5404\u5730\u8fde\n\u5802\u2026\u2026\u5404\u7ea7\u5168\u56fd\u5404\u5730\u8fde\u5802\u2026\u2026\u5404\u7ea7\u5168\u56fd\u5404\u5730Police\u8fde\u5802\u5404\u7ea7\u5168\u56fd\u5404\u5730\u8fde\u5802\u8fde\u5802\u8fde\u2026\u2026\u5404\u7ea7\u5168\u56fd\u5404\u5730Police\u8fde\u5802\u5802\u8fde\u2026\u2026\u5404\u7ea7\u8fdeNG\u5802\u5802\u8fde\u2026\u2026\u5802\u8fde\u2026\u2026\u5404\u7ea7\u5168\u56fd\u5404\u5730\u7684Police\u7684\u8fde\u8fde\u7247\u5802\u8fde\u2026\u2026\u5404\u7ea7\u8fdeNG\u5802\u5802\u5802\u8fde\u2026\u2026\u5802\u8fde\u2026\u2026\u5404\u7ea7\u8fdeNG\u5802\u5802\u8fde\u2026\u2026\u5802\u8fde\u2026\u2026\u5404\u7ea7NG\u5802\u5802\u8fde\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u79cd\u5802\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u5802\u5802\u79cd\u8fde\u5802\u5802\u5802\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u8fde\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802\u5802<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u7528\u7684\u662f kimi\uff0c\u76f4\u63a5\u8f93\u51fa\u4e86\u5927\u7247\u7684\u65e0\u610f\u4e49\u5185\u5bb9\u3002\u6211\u628a\u8fd9\u6bb5\u4e0a\u4e0b\u6587\u5206\u4eab\u5230\u7fa4\u91cc\uff0cAI \u9ad8\u624b\u7fa4\u91cc\u7684\u67d0\u4e9b\u8ba4\u8bc6  KIMI \u56e2\u961f\u7684\u76f4\u63a5\u7ed9\u4ed6\u4eec\u53cd\u9988\u4e86\u3002\u8fd9 bug \u4e5f\u4e0d\u77e5\u9053\u6211\u548b\u5c31\u7ed9\u5b83\u89e6\u53d1\u4e86\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u626f\u4e86\uff0c\u56de\u5230\u6211\u7684\u95ee\u9898\u3002\u4e4b\u524d\u5f15\u5165\u8fd9\u4e2a httpclient5 \u4f9d\u8d56\u5c31\u662f\u597d\u7684\uff0c\u4e3a\u5565\u521a\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\u5c31\u4e0d\u884c\u4e86\u5462\uff1f<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e8e\u662f\uff0c\u6211\u51b3\u5b9a\u68c0\u67e5\u4e00\u4e0b pom.xml \u4e2d\u7684\u914d\u7f6e\u3002\u53d1\u73b0\u6211\u7684 spring-boot-starter-parent \u539f\u672c\u5e94\u8be5\u4f7f\u7528 2.7.18 \u7684\u7248\u672c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8c01\u77e5\u5728\u5b50\u6a21\u5757\u65f6\uff0c\u5b83\u76f4\u63a5\u5f15\u5165\u4e86\u6700\u65b0\u7684 SpringBoot 3.x \u7684\u7248\u672c\u3002\u5bfc\u81f4\u51fa\u73b0\u627e\u4e0d\u5230\u7c7b\u7684\u5f02\u5e38\u60c5\u51b5 ClassNotFoundException\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8ddf\u6362\u56de  2.7.18 \u7684 SpringBoot \u7248\u672c\u5219\u76f4\u63a5\u89e3\u51b3\u4e86\u3002 <\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=5447\">\u89e3\u51b3java.lang.ClassNotFoundException: org.apache.hc.client5.http.ssl.TlsSocketStrategy\u95ee\u9898<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u597d\u4e45\u6ca1\u5199\u535a\u5ba2\u4e86\uff0c\u8981\u8352\u5e9f\u4e86\u3002 \u4eca\u5929\u95f2\u6765\u65e0\u4e8b\uff0c\u5c31\u5199\u4e00\u4e2a\u5728\u4eca\u5929\u9047\u5230\u7684\u95ee\u9898\u5427\u3002 \u62a5\u9519\u4fe1\u606f\u5982\u4e0b\uff1a \u770b\u8d77\u6765\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u627e\u4e0d [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1671,124,713,714,1522],"class_list":["post-5447","post","type-post","status-publish","format-standard","hentry","category-java","tag-ai","tag-http","tag-maven","tag-pom","tag-springboot"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5447"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5447\/revisions"}],"predecessor-version":[{"id":5448,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5447\/revisions\/5448"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}