{"id":5199,"date":"2024-08-01T22:49:02","date_gmt":"2024-08-01T14:49:02","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=5199"},"modified":"2024-08-01T22:49:02","modified_gmt":"2024-08-01T14:49:02","slug":"springboot-%e8%99%9a%e6%8b%9f%e7%ba%bf%e7%a8%8b%ef%bc%8c%e6%80%a7%e8%83%bd%e7%82%b8%e8%a3%82%ef%bc%81-2","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring-boot\/springboot-%e8%99%9a%e6%8b%9f%e7%ba%bf%e7%a8%8b%ef%bc%8c%e6%80%a7%e8%83%bd%e7%82%b8%e8%a3%82%ef%bc%81-2\/","title":{"rendered":"SpringBoot + \u865a\u62df\u7ebf\u7a0b\uff0c\u6027\u80fd\u70b8\u88c2\uff01"},"content":{"rendered":"<div class='wxsyncmain'>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"padding-right: 10px;padding-left: 10px;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;line-height: 1.6;letter-spacing: 0.034em;color: rgb(63, 63, 63);font-size: 16px;\">\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042045\" data-ratio=\"0.65\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215848304.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042045\" data-ratio=\"0.65\"  data-type=\"png\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215848304.png\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;text-align: right;\">mall\u5b66\u4e60\u6559\u7a0b\u5b98\u7f51\uff1a<span style=\"color: rgb(57, 179, 122);\"><strong>macrozheng.com<\/strong><\/span><\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-top: none;border-right: none;border-bottom: none;font-size: 0.9em;overflow: auto;background: rgb(251, 249, 253);color: rgb(106, 115, 125);margin-bottom: 20px;margin-top: 20px;padding: 15px 20px;line-height: 27px;border-left-color: rgb(53, 179, 120);\">\n<section style=\"font-size: 15px;color: rgb(89, 89, 89);line-height: 1.5em;\"><span style=\"font-size: 12px;\">\u4f5c\u8005\uff1a\u54d2\u54d2\u54d2\u6253\u4ee3\u7801<\/span><\/section>\n<section style=\"font-size: 15px;color: rgb(89, 89, 89);line-height: 1.5em;\"><span style=\"font-size: 12px;\">\u6765\u6e90\uff1ajuejin.cn\/post\/7266745788536799247<\/span><\/section>\n<\/blockquote>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;color: black;font-size: 22px;text-align: center;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-position: center center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 50px;margin-top: 1em;margin-bottom: 10px;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;margin-top: 38px;font-size: 18px;margin-bottom: 10px;\">\u4ec0\u4e48\u662f\u865a\u62df\u7ebf\u7a0b<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u865a\u62df\u7ebf\u7a0b\u662fJava19\u5f00\u59cb\u589e\u52a0\u7684\u4e00\u4e2a\u7279\u6027\uff0c\u548cGolang\u7684\u643a\u7a0b\u7c7b\u4f3c\uff0c\u4e00\u4e2a\u5176\u5b83\u8bed\u8a00\u65e9\u5c31\u63d0\u4f9b\u7684\u3001\u4e14\u5982\u6b64\u5b9e\u7528\u4e14\u597d\u7528\u7684\u529f\u80fd\uff0c\u4f5c\u4e3a\u4e00\u4e2aJava\u5f00\u53d1\u8005\uff0c\u65e9\u5c31\u5df2\u7ecf\u671b\u773c\u6b32\u7a7f\u4e86\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;color: black;font-size: 22px;text-align: center;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-position: center center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 50px;margin-top: 1em;margin-bottom: 10px;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;margin-top: 38px;font-size: 18px;margin-bottom: 10px;\">\u865a\u62df\u7ebf\u7a0b\u548c\u666e\u901a\u7ebf\u7a0b\u7684\u533a\u522b<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u201c\u865a\u62df\u201d\u7ebf\u7a0b\uff0c\u671b\u6587\u751f\u4e49\uff0c\u5b83\u662f\u201c\u5047\u201d\u7684\uff0c\u5b83\u4e0d\u76f4\u63a5\u8c03\u5ea6\u64cd\u4f5c\u7cfb\u7edf\u7684\u7ebf\u7a0b\uff0c\u800c\u662f\u7531JVM\u518d\u63d0\u4f9b\u4e00\u5c42\u7ebf\u7a0b\u7684\u63a5\u53e3\u62bd\u8c61\uff0c\u7531\u666e\u901a\u7ebf\u7a0b\u8c03\u5ea6\uff0c\u5373\u4e00\u4e2a\u666e\u901a\u7684\u64cd\u4f5c\u7cfb\u7edf\u7ebf\u7a0b\u53ef\u4ee5\u8c03\u5ea6\u6210\u5343\u4e0a\u4e07\u4e2a\u865a\u62df\u7ebf\u7a0b\u3002\u865a\u62df\u7ebf\u7a0b\u6bd4\u666e\u901a\u7ebf\u7a0b\u7684\u6d88\u8017\u8981\u5c0f\u5f97\u591a\u5f97\u591a\uff0c\u5728\u5185\u5b58\u8db3\u591f\u7684\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u751a\u81f3\u53ef\u4ee5\u521b\u5efa\u4e0a\u767e\u4e07\u7684\u865a\u62df\u7ebf\u7a0b\uff0c\u8fd9\u5728\u4e4b\u524d(Java19\u4ee5\u524d)\u662f\u4e0d\u53ef\u80fd\u7684\u3002<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-top: none;border-right: none;border-bottom: none;font-size: 0.9em;overflow: auto;background: rgb(251, 249, 253);color: rgb(106, 115, 125);margin-bottom: 20px;margin-top: 20px;padding: 15px 20px;line-height: 27px;border-left-color: rgb(53, 179, 120);\">\n<p style=\"line-height: 26px;font-size: 15px;color: rgb(89, 89, 89);\">\u5176\u5b9e\u5982\u679c\u6709\u7528\u8fc7akka\u7684\u670b\u53cb\u4eec\u4f1a\u53d1\u73b0\uff0c\u5176\u5b9e\u4e24\u8005\u5f88\u76f8\u4f3c\uff0c\u53ea\u4e0d\u8fc7\u4f7f\u7528akka\u662f\u5e94\u7528\u7a0b\u5e8f\u6765\u5904\u7406\uff0c\u800c\u865a\u62df\u7ebf\u7a0b\u662fJVM\u6765\u5904\u7406\uff0c\u4f7f\u7528\u4e0a\u66f4\u7b80\u6d01\u4e14\u65b9\u4fbf\u3002<\/p>\n<\/blockquote>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;color: black;font-size: 22px;text-align: center;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-position: center center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 50px;margin-top: 1em;margin-bottom: 10px;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;margin-top: 38px;font-size: 18px;margin-bottom: 10px;\">SpringBoot\u4f7f\u7528\u865a\u62df\u7ebf\u7a0b<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u4e0b\u9762\u6211\u4eec\u4f1a\u5728SpringBoot\u4e2d\u4f7f\u7528\u865a\u62df\u7ebf\u7a0b\uff0c\u5c06\u9ed8\u8ba4\u7684\u5f02\u6b65\u7ebf\u7a0b\u6c60\u548chttp\u5904\u7406\u7ebf\u7a0b\u6c60\u66ff\u6362\u4e3a\u865a\u62df\u7ebf\u7a0b\uff0c\u7136\u540e\u5bf9\u6bd4\u865a\u62df\u7ebf\u7a0b\u548c\u666e\u901a\u7ebf\u7a0b\u7684\u6027\u80fd\u5dee\u5f02\uff0c\u4f60\u4f1a\u53d1\u73b0\u5dee\u522b\u5c31\u50cf\u9a6c\u8f66\u6362\u9ad8\u94c1\uff0c\u4e0d\u662f\u4e00\u4e2a\u65f6\u4ee3\u7684\u4e1c\u897f\u3002<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-top: none;border-right: none;border-bottom: none;font-size: 0.9em;overflow: auto;background: rgb(251, 249, 253);color: rgb(106, 115, 125);margin-bottom: 20px;margin-top: 20px;padding: 15px 20px;line-height: 27px;border-left-color: rgb(53, 179, 120);\">\n<p style=\"line-height: 26px;font-size: 15px;color: rgb(89, 89, 89);\"><span style=\"color: rgb(57, 179, 122);\"><strong>\u8fd9\u6216\u8bb8\u662f\u4e00\u4e2a\u5bf9\u4f60\u6709\u7528\u7684\u5f00\u6e90\u9879\u76ee<\/strong><\/span>\uff0cmall\u9879\u76ee\u662f\u4e00\u5957\u57fa\u4e8e <a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247523575&amp;idx=1&amp;sn=3a3b527b57dc985968854839a915a5dc&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >SpringBoot3<\/a> + JDK 17 + Vue \u5b9e\u73b0\u7684\u7535\u5546\u7cfb\u7edf\uff08<span style=\"color: rgb(57, 179, 122);\"><strong>Github\u6807\u661f60K<\/strong><\/span>\uff09\uff0c\u91c7\u7528Docker\u5bb9\u5668\u5316\u90e8\u7f72\uff0c\u540e\u7aef\u652f\u6301\u591a\u6a21\u5757\u548c\u5fae\u670d\u52a1\u67b6\u6784\u3002\u5305\u62ec\u524d\u53f0\u5546\u57ce\u9879\u76ee\u548c\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\uff0c\u80fd\u652f\u6301\u5b8c\u6574\u7684\u8ba2\u5355\u6d41\u7a0b\uff01\u6db5\u76d6\u5546\u54c1\u3001\u8ba2\u5355\u3001\u8d2d\u7269\u8f66\u3001\u6743\u9650\u3001\u4f18\u60e0\u5238\u3001\u4f1a\u5458\u3001\u652f\u4ed8\u7b49\u529f\u80fd\uff01<\/p>\n<ul style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Boot\u9879\u76ee\uff1a<span style=\"color: rgb(57, 179, 122);\"><strong>https:\/\/github.com\/macrozheng\/mall<\/strong><\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">Cloud\u9879\u76ee\uff1a<span style=\"color: rgb(57, 179, 122);\"><strong>https:\/\/github.com\/macrozheng\/mall-swarm<\/strong><\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\u89c6\u9891\u6559\u7a0b\uff1a<span style=\"color: rgb(57, 179, 122);\"><strong>https:\/\/www.macrozheng.com\/video\/<\/strong><\/span><\/section>\n<\/li>\n<\/ul>\n<p style=\"line-height: 26px;font-size: 15px;color: rgb(89, 89, 89);\">\u9879\u76ee\u6f14\u793a\uff1a<img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042046\" data-ratio=\"0.5681186283595923\"  data-type=\"gif\" data-w=\"1079\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215854338.gif\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042046\" data-ratio=\"0.5681186283595923\"  data-type=\"gif\" data-w=\"1079\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215854338.gif\"  \/><\/noscript><\/p>\n<\/blockquote>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 15px;font-weight: bold;color: black;font-size: 20px;margin-top: 1.2em;\"><span style=\"background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-size: 100% 100%;background-repeat: no-repeat;display: inline-block;width: 16px;height: 15px;line-height: 15px;margin-bottom: -1px;\"><\/span><span style=\"display: none;\"><\/span><span style=\"font-size: 17px;display: inline-block;margin-left: 8px;color: rgb(72, 179, 120);\">\u914d\u7f6e<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u9996\u5148\u6211\u4eec\u4f7f\u7528\u7684Java\u7248\u672c\u662f<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">java-20.0.2-oracle<\/code>\uff0cSpringBoot\u7248\u672c\u662f<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">3.1.2<\/code>\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u8981\u5728SpringBoot\u4e2d\u4f7f\u7528\u865a\u62df\u7ebf\u7a0b\u5f88\u7b80\u5355\uff0c\u589e\u52a0\u5982\u4e0b\u914d\u7f6e\u5373\u53ef\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;background: #282c34;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/***\u914d\u7f6e\u662f\u7528\u4e8e\u7a0d\u540e\u6d4b\u8bd5\uff0cspring.virtual-thread=true\u662f\u4f7f\u7528\u865a\u62df\u7ebf\u7a0b\uff0cfalse\u65f6\u8fd8\u662f\u4f7f\u7528\u9ed8\u8ba4\u7684\u666e\u901a\u7ebf\u7a0b*\/<\/span><span style=\"color: #61aeee;line-height: 26px;\">@Configuration<\/span><span style=\"color: #61aeee;line-height: 26px;\">@ConditionalOnProperty<\/span>(prefix=<span style=\"color: #98c379;line-height: 26px;\">\"spring\"<\/span>,name=<span style=\"color: #98c379;line-height: 26px;\">\"virtual-thread\"<\/span>,havingValue=<span style=\"color: #98c379;line-height: 26px;\">\"true\"<\/span>)<span style=\"color: #c678dd;line-height: 26px;\">public<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span><span style=\"color: #e6c07b;line-height: 26px;\">ThreadConfig<\/span><\/span>{<span style=\"color: #61aeee;line-height: 26px;\">@Bean<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>AsyncTaskExecutor<span style=\"color: #61aeee;line-height: 26px;\">applicationTaskExecutor<\/span><span style=\"line-height: 26px;\">()<\/span><\/span>{<span style=\"color: #c678dd;line-height: 26px;\">return<\/span><span style=\"color: #c678dd;line-height: 26px;\">new<\/span>TaskExecutorAdapter(Executors.newVirtualThreadPerTaskExecutor());}<span style=\"color: #61aeee;line-height: 26px;\">@Bean<\/span><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>TomcatProtocolHandlerCustomizer&lt;?&gt;protocolHandlerCustomizer(){<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>protocolHandler-&gt;{protocolHandler.setExecutor(Executors.newVirtualThreadPerTaskExecutor());};}}<\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 15px;font-weight: bold;color: black;font-size: 20px;margin-top: 1.2em;\"><span style=\"background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-size: 100% 100%;background-repeat: no-repeat;display: inline-block;width: 16px;height: 15px;line-height: 15px;margin-bottom: -1px;\"><\/span><span style=\"display: none;\"><\/span><span style=\"font-size: 17px;display: inline-block;margin-left: 8px;color: rgb(72, 179, 120);\">@Async\u6027\u80fd\u5bf9\u6bd4<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u6211\u4eec\u5199\u4e00\u4e2a\u5f02\u6b65service\uff0c\u91cc\u9762\u7761\u772050ms\uff0c\u6a21\u62dfMySQL\u6216Redis\u7b49IO\u64cd\u4f5c\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;background: #282c34;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;\"><span style=\"color: #61aeee;line-height: 26px;\">@Service<\/span><span style=\"color: #c678dd;line-height: 26px;\">public<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span><span style=\"color: #e6c07b;line-height: 26px;\">AsyncService<\/span><\/span>{<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/****<span style=\"color: #c678dd;line-height: 26px;\">@param<\/span>countDownLatch\u7528\u4e8e\u6d4b\u8bd5*\/<\/span><span style=\"color: #61aeee;line-height: 26px;\">@Async<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span><span style=\"color: #c678dd;line-height: 26px;\">void<\/span><span style=\"color: #61aeee;line-height: 26px;\">doSomething<\/span><span style=\"line-height: 26px;\">(CountDownLatchcountDownLatch)<\/span><span style=\"color: #c678dd;line-height: 26px;\">throws<\/span>InterruptedException<\/span>{Thread.sleep(<span style=\"color: #d19a66;line-height: 26px;\">50<\/span>);countDownLatch.countDown();}}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u6700\u540e\u6d4b\u8bd5\u7c7b\uff0c\u5f88\u7b80\u5355\uff0c\u5c31\u662f\u5faa\u73af\u8c03\u7528\u8fd9\u4e2a\u65b9\u6cd510\u4e07\u6b21\uff0c\u8ba1\u7b97\u6240\u6709\u65b9\u6cd5\u6267\u884c\u5b8c\u6210\u7684\u6d88\u8017\u7684\u65f6\u95f4\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;background: #282c34;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;\"><span style=\"color: #61aeee;line-height: 26px;\">@Test<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span><span style=\"color: #c678dd;line-height: 26px;\">void<\/span><span style=\"color: #61aeee;line-height: 26px;\">testAsync<\/span><span style=\"line-height: 26px;\">()<\/span><span style=\"color: #c678dd;line-height: 26px;\">throws<\/span>InterruptedException<\/span>{<span style=\"color: #c678dd;line-height: 26px;\">long<\/span>start=System.currentTimeMillis();<span style=\"color: #c678dd;line-height: 26px;\">int<\/span>n=<span style=\"color: #d19a66;line-height: 26px;\">100000<\/span>;CountDownLatchcountDownLatch=<span style=\"color: #c678dd;line-height: 26px;\">new<\/span>CountDownLatch(n);<span style=\"color: #c678dd;line-height: 26px;\">for<\/span>(<span style=\"color: #c678dd;line-height: 26px;\">int<\/span>i=<span style=\"color: #d19a66;line-height: 26px;\">0<\/span>;i&lt;n;i++){asyncService.doSomething(countDownLatch);}countDownLatch.await();<span style=\"color: #c678dd;line-height: 26px;\">long<\/span>end=System.currentTimeMillis();System.out.println(<span style=\"color: #98c379;line-height: 26px;\">\"\u8017\u65f6\uff1a\"<\/span>+(end-start)+<span style=\"color: #98c379;line-height: 26px;\">\"ms\"<\/span>);}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\"><em style=\"color: black;\">\u666e\u901a\u7ebf\u7a0b\u8017\u65f6\uff1a<\/em> <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">678\u79d2<\/code>\u5de6\u53f3\uff0c\u8d85\u8fc710\u5206\u949f\u4e86<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042043\" data-ratio=\"0.3073248407643312\"  data-type=\"other\" data-w=\"628\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042043\" data-ratio=\"0.3073248407643312\"  data-type=\"other\" data-w=\"628\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\"><em style=\"color: black;\">\u865a\u62df\u7ebf\u7a0b\u8017\u65f6\uff1a<\/em> <code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">3.9\u79d2!!<\/code><\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042044\" data-ratio=\"0.3328050713153724\"  data-type=\"other\" data-w=\"631\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042044\" data-ratio=\"0.3328050713153724\"  data-type=\"other\" data-w=\"631\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u670b\u53cb\u4eec\uff0c\u63a5\u8fd1<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">200\u500d<\/code>\u7684\u6027\u80fd\u5dee\u8ddd\uff01\uff01<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 15px;font-weight: bold;color: black;font-size: 20px;margin-top: 1.2em;\"><span style=\"background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-size: 100% 100%;background-repeat: no-repeat;display: inline-block;width: 16px;height: 15px;line-height: 15px;margin-bottom: -1px;\"><\/span><span style=\"display: none;\"><\/span><span style=\"font-size: 17px;display: inline-block;margin-left: 8px;color: rgb(72, 179, 120);\">HTTP\u8bf7\u6c42\u6027\u80fd\u5bf9\u6bd4<\/span><span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u8ba9\u6211\u4eec\u518d\u770b\u770bhttp\u8bf7\u6c42\u7684\u5bf9\u6bd4\uff0c\u7b80\u5355\u5199\u4e2aget\u8bf7\u6c42\uff0c\u91cc\u9762\u4ec0\u4e48\u4e5f\u4e0d\u505a\uff0c\u4e00\u6837\u776150ms\uff0c\u6a21\u62dfIO\u64cd\u4f5c\uff1a<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;\"><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;background: #282c34;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;border-radius: 0px;font-size: 12px;-webkit-overflow-scrolling: touch;\"><span style=\"color: #61aeee;line-height: 26px;\">@RequestMapping<\/span>(<span style=\"color: #98c379;line-height: 26px;\">\"\/get\"<\/span>)<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>Object<span style=\"color: #61aeee;line-height: 26px;\">get<\/span><span style=\"line-height: 26px;\">()<\/span><span style=\"color: #c678dd;line-height: 26px;\">throws<\/span>Exception<\/span>{Thread.sleep(<span style=\"color: #d19a66;line-height: 26px;\">50<\/span>);<span style=\"color: #c678dd;line-height: 26px;\">return<\/span><span style=\"color: #98c379;line-height: 26px;\">\"ok\"<\/span>;}<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u7136\u540e\u6211\u4eec\u4f7f\u7528jmeter\u8bf7\u6c42\u63a5\u53e3\uff0c<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">500\u4e2a<\/code>\u5e76\u53d1\u7ebf\u7a0b\uff0c\u8fd0\u884c<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">1\u4e07\u6b21<\/code>\uff0c\u770b\u770b\u6548\u679c\u5982\u4f55\uff1a<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\"><em style=\"color: black;\">\u666e\u901a\u7ebf\u7a0b\uff1a<\/em><\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042047\" data-ratio=\"0.537962962962963\"  data-type=\"other\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042047\" data-ratio=\"0.537962962962963\"  data-type=\"other\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u53ef\u4ee5\u770b\u5230\u6700\u5c0f\u7528\u65f6<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">50ms<\/code>\uff0c\u8fd9\u4e2a\u6ca1\u6bdb\u75c5\uff0c\u63a5\u53e3\u91cc\u9762\u7761\u7720\u4e8650ms\uff0c\u4f46\u662f\u4e0d\u7ba1\u662f\u4e2d\u4f4d\u6570\u8fd8\u662f<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">90\/95\/99\u7ebf<\/code>\u90fd\u5927\u4e8e<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">150ms<\/code>\u4e86\uff0c\u8fd9\u662f\u56e0\u4e3a\u7cfb\u7edf\u7ebf\u7a0b\u662f\u4e00\u4e2a\u5f88\u6602\u8d35\u7684\u8d44\u6e90\uff0cSpringBoot\u4e2dtomcat\u9ed8\u8ba4\u7684\u6700\u5927\u8fde\u63a5\u6570\u5e94\u8be5\u662f200\uff0c\u5728\u8fde\u63a5\u6c60\u7684\u7ebf\u7a0b\u88ab\u8017\u5c3d\u540e\uff0c\u8fd9200\u4e2a\u7ebf\u7a0b\u5728\u90a3\u5e72\u7b4950ms\u7ed3\u675f\uff0c\u800c\u5269\u4e0b\u7684\u8bf7\u6c42\u4e5f\u53ea\u80fd\u7b49\u5f85\uff0c\u65e0\u6cd5\u8fdb\u884c\u5176\u5b83\u7684\u64cd\u4f5c\u3002\u4e0b\u9762\u518d\u770b\u4e0b\u865a\u62df\u7ebf\u7a0b\u7684\u8868\u73b0\uff1a<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\"><em style=\"color: black;\">\u865a\u62df\u7ebf\u7a0b\u8017\u65f6\uff1a<\/em><\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042052\" data-ratio=\"0.4935185185185185\"  data-type=\"other\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042052\" data-ratio=\"0.4935185185185185\"  data-type=\"other\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u53ef\u4ee5\u770b\u5230\u5373\u4f7f\u662f\u6700\u5927\u8017\u65f6\uff0c\u4e5f\u4fdd\u6301\u5728100ms\u4ee5\u4e0b\uff0c\u5373\u7ebf\u7a0b\u7b49\u5f85\u65f6\u95f4\u663e\u8457\u7684\u51cf\u5c11\uff0c\u865a\u62df\u7ebf\u7a0b\u66f4\u597d\u7684\u5229\u7528\u4e86\u7cfb\u7edf\u8d44\u6e90\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;color: black;font-size: 22px;text-align: center;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-position: center center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 50px;margin-top: 1em;margin-bottom: 10px;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;margin-top: 38px;font-size: 18px;margin-bottom: 10px;\">\u603b\u7ed3<\/span><\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u4ece\u4e0a\u9762\u7684\u6027\u80fd\u5bf9\u6bd4\u6765\u770b\uff0c\u865a\u62df\u7ebf\u7a0b\u5728\u6027\u80fd\u65b9\u9762\u6709\u660e\u663e\u7684\u4f18\u52bf\uff0c\u4f46\u662f\u8981\u6ce8\u610f\u7684\u662f\uff0c\u6211\u4eec\u4e0a\u9762\u7684\u6d4b\u8bd5\u90fd\u662f\u8ba9\u7ebf\u7a0b\u7b49\u5f85\u4e8650ms\uff0c\u8fd9\u662f\u6a21\u62df\u4ec0\u4e48\u573a\u666f\uff1f\u6ca1\u9519\uff0c\u662f<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">IO\u5bc6\u96c6\u578b<\/code>\u573a\u666f\uff0c\u5373\u7ebf\u7a0b\u5927\u90e8\u5206\u65f6\u95f4\u662f\u5728\u7b49\u5f85IO\uff0c\u8fd9\u6837\u865a\u62df\u7ebf\u7a0b\u624d\u53ef\u4ee5\u53d1\u6325\u51fa\u5b83\u7684\u4f18\u52bf\uff0c\u5982\u679c\u662f<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">CPU\u5bc6\u96c6\u578b<\/code>\u573a\u666f\uff0c\u90a3\u4e48\u53ef\u80fd\u6548\u679c\u5e76\u4e0d\u5927\u3002\u4e0d\u8fc7\u6211\u4eec\u76ee\u524d\u5927\u90e8\u5206\u7684\u5e94\u7528\u90fd\u662fIO\u5bc6\u96c6\u578b\u5e94\u7528\u8f83\u591a\uff0c\u6bd4\u5982\u5178\u578b\u7684<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">WEB\u5e94\u7528<\/code>\uff0c\u5927\u91cf\u7684\u65f6\u95f4\u5728\u7b49\u5f85<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">\u7f51\u7edcIO<\/code>\uff08DB\u3001\u7f13\u5b58\u3001HTTP\u7b49\u7b49\uff09\uff0c\u4f7f\u7528\u865a\u62df\u7ebf\u7a0b\u7684\u6548\u679c\u8fd8\u662f\u975e\u5e38\u660e\u663e\u7684\u3002<\/p>\n<hr data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;height: 1px;border-width: initial;border-style: none;border-color: initial;text-align: center;background-image: linear-gradient(to right, rgba(93, 186, 133, 0), rgba(93, 186, 133, 0.75), rgba(93, 186, 133, 0));\"  \/>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">Github\u4e0a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">\u6807\u661f60K<\/code>\u7684\u7535\u5546\u5b9e\u6218\u9879\u76eemall\uff0c\u5168\u5957 <a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247510592&amp;idx=1&amp;sn=ca49cdaf727c5d9cb94ae774fe0d7643&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u89c6\u9891\u6559\u7a0b\uff082023\u6700\u65b0\u7248\uff09<\/a> \u5df2\u66f4\u65b0\u5b8c\u6bd5\uff01\u5168\u5957\u6559\u7a0b<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">\u7ea640\u5c0f\u65f6\uff0c\u5171113\u671f<\/code>\uff0c\u901a\u8fc7\u8fd9\u5957\u6559\u7a0b\u4f60\u53ef\u4ee5\u62e5\u6709\u4e00\u4e2a<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">\u6db5\u76d6\u4e3b\u6d41Java\u6280\u672f\u6808\u7684\u5b8c\u6574\u9879\u76ee\u7ecf\u9a8c<\/code>\uff0c\u540c\u65f6\u63d0\u9ad8\u81ea\u5df1<code style=\"font-size: 14px;padding: 2px 4px;border-radius: 4px;margin-right: 2px;margin-left: 2px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(40, 202, 113);\">\u72ec\u7acb\u5f00\u53d1\u4e00\u4e2a\u9879\u76ee\u7684\u80fd\u529b<\/code>\uff0c\u4e0b\u9762\u662f\u9879\u76ee\u7684\u6574\u4f53\u67b6\u6784\u56fe\uff0c\u611f\u5174\u8da3\u7684\u5c0f\u4f19\u4f34\u53ef\u4ee5\u70b9\u51fb\u94fe\u63a5 <a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247510592&amp;idx=1&amp;sn=ca49cdaf727c5d9cb94ae774fe0d7643&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >mall\u89c6\u9891\u6559\u7a0b<\/a> \u52a0\u5165\u5b66\u4e60\u3002<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;display: flex;flex-direction: column;justify-content: center;align-items: center;\"><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-imgfileid=\"100042049\" data-ratio=\"0.7166666666666667\"  data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215902946.jpeg\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-imgfileid=\"100042049\" data-ratio=\"0.7166666666666667\"  data-type=\"jpeg\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;border-radius: 4px;margin-bottom: 25px;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215902946.jpeg\"  \/><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-bottom: 8px;padding-top: 1em;color: rgb(74, 74, 74);line-height: 1.75em;\">\u6574\u5957 <a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247510592&amp;idx=1&amp;sn=ca49cdaf727c5d9cb94ae774fe0d7643&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u89c6\u9891\u6559\u7a0b<\/a> \u7684\u5185\u5bb9\u8fd8\u662f\u975e\u5e38\u5b8c\u5584\u7684\uff0c\u6db5\u76d6\u4e86mall\u9879\u76ee\u6700\u4f73\u5b66\u4e60\u8def\u7ebf\u3001\u6574\u4f53\u6846\u67b6\u642d\u5efa\u3001\u4e1a\u52a1\u4e0e\u6280\u672f\u5b9e\u73b0\u5168\u65b9\u4f4d\u89e3\u6790\u3001\u7ebf\u4e0aDocker\u73af\u5883\u90e8\u7f72\u3001\u5fae\u670d\u52a1\u9879\u76ee\u5b66\u4e60\u7b49\u5185\u5bb9\uff0c\u4f60\u4e5f\u53ef\u4ee5\u70b9\u51fb\u94fe\u63a5 <a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247510592&amp;idx=1&amp;sn=ca49cdaf727c5d9cb94ae774fe0d7643&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >mall\u89c6\u9891\u6559\u7a0b<\/a> \u4e86\u89e3\u66f4\u591a\u5185\u5bb9\u3002<\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;color: black;font-size: 22px;text-align: center;background-image: url('https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215843849.png');background-position: center center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 50px;margin-top: 1em;margin-bottom: 10px;\"><span style=\"display: none;\"><\/span><span style=\"display: inline-block;height: 38px;line-height: 42px;color: rgb(72, 179, 120);background-position: left center;background-repeat: no-repeat;background-attachment: initial;background-origin: initial;background-clip: initial;background-size: 63px;margin-top: 38px;font-size: 18px;margin-bottom: 10px;\">\u63a8\u8350\u9605\u8bfb<\/span><\/h2>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;color: black;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247523575&amp;idx=1&amp;sn=3a3b527b57dc985968854839a915a5dc&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u5168\u9762\u5347\u7ea7\uff01\u4e00\u5957\u57fa\u4e8eSpring Boot 3+JDK17\u7684\u5b9e\u6218\u9879\u76ee\uff01<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247512035&amp;idx=1&amp;sn=711bb886c3b51d4c69e3a0aee8219be8&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >69K Star\uff01\u8fd9\u662f\u6211\u89c1\u8fc7\u6700\u5f3a\u7684\u5f00\u6e90\u7535\u5546\u7cfb\u7edf \uff01\uff01<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247510592&amp;idx=1&amp;sn=ca49cdaf727c5d9cb94ae774fe0d7643&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >Github\u6807\u661f60K\uff01\u4e00\u5957\u5b8c\u6574\u7684\u9879\u76ee\u5b9e\u6218\u6559\u7a0b\u6765\u4e86\uff0c\u4e3b\u6d41Java\u6280\u672f\u4e00\u7f51\u6253\u5c3d\uff01<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247513826&amp;idx=1&amp;sn=0f582ade89a5d300a3a2dbd1247a54f1&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u770b\u4e86\u6211\u9879\u76ee\u4e2d\u8d2d\u7269\u8f66\u3001\u8ba2\u5355\u3001\u652f\u4ed8\u4e00\u6574\u5957\u8bbe\u8ba1\uff0c\u540c\u4e8b\u4e5f\u5f00\u59cb\u6084\u6084\u6a21\u4eff\u4e86...<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247513093&amp;idx=1&amp;sn=03fb22d469f50f03793030e9a0c30551&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u652f\u4ed8\u7cfb\u7edf\u5c31\u8be5\u8fd9\u4e48\u8bbe\u8ba1\uff0c\u7a33\u7684\u4e00\u6279\uff01<\/a><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzU1Nzg4NjgyMw==&amp;mid=2247508732&amp;idx=1&amp;sn=3d10d005c554c43e7ce601aec4a94fda&amp;scene=21#wechat_redirect\" style=\"font-weight: bold;color: rgb(72, 179, 120);border-bottom: 1px solid rgb(72, 179, 120);\" data-linktype=\"2\" target=\"_blank\"  rel=\"nofollow\" >\u6743\u9650\u7cfb\u7edf\u5c31\u8be5\u8fd9\u4e48\u8bbe\u8ba1\uff0c\u7a33\u7684\u4e00\u6279\uff01<\/a><\/section>\n<\/li>\n<\/ul>\n<\/section>\n<section class=\"mp_profile_iframe_wrp\"><mp-common-profile class=\"js_uneditable custom_select_card mp_profile_iframe\" data-pluginname=\"mpprofile\" data-id=\"MzU1Nzg4NjgyMw==\" data-headimg=\"http:\/\/mmbiz.qpic.cn\/mmbiz_png\/CKvMdchsUwnfLzMS3eAE7gXUvx6GYmnzuANVe5zJIGp0C084ANIia7Xo1nSADddF3eiajuhKDf0EofjI4t7hdqyA\/0?wx_fmt=png\" data-nickname=\"macrozheng\" data-alias=\"\" data-signature=\"\u4e13\u6ce8Java\u6280\u672f\u5206\u4eab\uff0c\u89e3\u6790\u4f18\u8d28\u5f00\u6e90\u9879\u76ee\u3002\u6db5\u76d6SpringBoot\u3001SpringCloud\u3001Docker\u3001K8S\u7b49\u5b9e\u7528\u6280\u672f\uff0c\u4f5c\u8005Github\u5f00\u6e90\u9879\u76eemall\uff0850K+Star\uff09\u3002\" data-from=\"0\" data-is_biz_ban=\"0\"><\/mp-common-profile><img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-galleryid=\"\" data-imgfileid=\"100005812\" data-ratio=\"0.2777777777777778\"  data-type=\"gif\" data-w=\"1080\" style=\"text-align: center;font-size: var(--articleFontsize);letter-spacing: 0.034em;\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215906259.gif\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\"  \/><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-galleryid=\"\" data-imgfileid=\"100005812\" data-ratio=\"0.2777777777777778\"  data-type=\"gif\" data-w=\"1080\" style=\"text-align: center;font-size: var(--articleFontsize);letter-spacing: 0.034em;\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215906259.gif\"  \/><\/noscript><\/section>\n<p style=\"display: none;\"><mp-style-type data-value=\"3\"><\/mp-style-type><\/p>\n<blockquote>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7:                 macrozheng              <\/p>\n<\/blockquote>\n<\/div>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>mall\u5b66\u4e60\u6559\u7a0b\u5b98\u7f51\uff1amacrozheng.com \u4f5c\u8005\uff1a\u54d2\u54d2\u54d2\u6253\u4ee3\u7801 \u6765\u6e90\uff1ajuejin.cn\/post\/72667457885 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":5183,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[7],"tags":[],"class_list":["post-5199","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring-boot"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215845279-150x150.jpeg","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215848304.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215845279.jpeg","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215845279.jpeg","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215848304.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215845279.jpeg","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215845279.jpeg","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215845279.jpeg","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215848304.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215848304.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215854338.gif","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215854338.gif","id":"image3"},{"imagesurl":"","id":"image4"},{"imagesurl":"","id":"image5"},{"imagesurl":"","id":"image6"},{"imagesurl":"","id":"image7"},{"imagesurl":"","id":"image8"},{"imagesurl":"","id":"image9"},{"imagesurl":"","id":"image10"},{"imagesurl":"","id":"image11"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215902946.jpeg","id":"image12"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215902946.jpeg","id":"image13"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215906259.gif","id":"image14"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2024\/08\/20240801215906259.gif","id":"image15"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring Boot","post_date":"2024-08-01","like_count":"0","praiseWord":"\u9f13\u52b1","copyright_state":"","excitationAd":"0","rewardedVideoAdId":"","detailAdId":"","detailAd":"0","enterpriseMinapp":"0","audios":[],"postImageUrl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/2023\/05\/20230519082947553.jpg","avatarurls":[],"related_posts":null,"pageviews":350,"next_post_id":5297,"next_post_title":"Spring Boot\u5b9e\u73b0\u591a\u6570\u636e\u6e90\u5feb\u901f\u5165\u95e8","previous_post_id":5880,"previous_post_title":"\u624b\u5199\u4e86\u4e00\u4e2a\u597d\u7528\u7684\u9650\u6d41\u3001\u5206\u5e03\u5f0f\u9501\u548c\u624b\u52a8\u63a7\u5236\u4e8b\u52a1\u76f8\u7ed3\u5408\u7684starter\u542f\u52a8\u5668","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/comments?post=5199"}],"version-history":[{"count":1,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5199\/revisions"}],"predecessor-version":[{"id":6348,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/5199\/revisions\/6348"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media\/5183"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=5199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=5199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=5199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}