{"id":2933,"date":"2023-07-14T15:27:43","date_gmt":"2023-07-14T07:27:43","guid":{"rendered":"https:\/\/xinchewhd.com.cn\/?p=2933"},"modified":"2023-07-14T15:27:43","modified_gmt":"2023-07-14T07:27:43","slug":"spring-%e8%b5%8c%e4%b8%8a%e6%9c%aa%e6%9d%a5%e7%9a%84%e4%b8%80%e5%87%bb%ef%bc%8c%e5%93%8d%e5%ba%94%e5%bc%8f%e7%9a%84-webflux-%e6%a1%86%e6%9e%b6%e6%9b%b4%e4%bc%98%e9%9b%85%ef%bc%8c%e6%80%a7%e8%83%bd","status":"publish","type":"post","link":"https:\/\/xinchewhd.com.cn\/index.php\/spring\/spring-%e8%b5%8c%e4%b8%8a%e6%9c%aa%e6%9d%a5%e7%9a%84%e4%b8%80%e5%87%bb%ef%bc%8c%e5%93%8d%e5%ba%94%e5%bc%8f%e7%9a%84-webflux-%e6%a1%86%e6%9e%b6%e6%9b%b4%e4%bc%98%e9%9b%85%ef%bc%8c%e6%80%a7%e8%83%bd\/","title":{"rendered":"Spring \u8d4c\u4e0a\u672a\u6765\u7684\u4e00\u51fb\uff0c\u54cd\u5e94\u5f0f\u7684 WebFlux \u6846\u67b6\u66f4\u4f18\u96c5\uff0c\u6027\u80fd\u66f4\u5f3a\uff01"},"content":{"rendered":"<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;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;\" data-mpa-powered-by=\"yiban.io\">\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin: 0.6em auto;padding-left: 10px;border-left: 2px solid rgb(0, 150, 136);\"><span style=\"display: none;\"><\/span>Spring-webflux\u7b80\u4ecb<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">spring-webflux\u662fspring\u57285.0\u7248\u672c\u540e\u63d0\u4f9b\u7684\u4e00\u5957\u54cd\u5e94\u5f0f\u7f16\u7a0b\u98ce\u683c\u7684web\u5f00\u53d1\u6846\u67b6\uff0c\u5927\u91cf\u6d4b\u8bc4\u8bc1\u660e\uff0c\u4f7f\u7528WebFlux\u5f00\u53d1\u63a5\u53e3\u80fd\u591f\u5927\u5e45\u63d0\u5347\u63a5\u53e3\u7684\u541e\u5410\u91cf\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u8fd9\u4e2a\u6846\u67b6\u5305\u542b\u4e86spring-framework\u548cspring mvc\uff0c\u5b83\u53ef\u4ee5\u8fd0\u884c\u5728Netty\u3001Undertow\u4ee5\u53ca3.1\u7248\u672c\u4ee5\u4e0a\u7684Serlvet\u5bb9\u5668\u4e0a\u3002\u4f60\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u540c\u65f6\u4f7f\u7528spring-webmvc\u548cspring-webflux\uff0c\u6216\u8005\u53ea\u7528\u5176\u4e2d\u4e00\u4e2a\u6765\u5f00\u53d1web\u5e94\u7528\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin: 0.6em auto;padding-left: 10px;border-left: 2px solid rgb(0, 150, 136);\"><span style=\"display: none;\"><\/span>\u4ec0\u4e48\u662f\u201c\u54cd\u5e94\u5f0f\u201d<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u6240\u8c13\u54cd\u5e94\u5f0f\uff0c\u4e3e\u4e2a\u4f8b\u5b50\uff0c\u5f53\u8c03\u7528\u4e00\u4e2aapi\u83b7\u53d6\u6570\u636e\u65f6\uff0c\u65e0\u9700\u963b\u585e\u7b49\u5f85\u6570\u636e\u8fd4\u56de\uff0c\u800c\u662f\u5f53\u6709\u6570\u636e\u8fd4\u56de\u65f6\u4f1a\u8fdb\u884c\u544a\u77e5\u3002\u53ef\u89c1\u54cd\u5e94\u5f0f\u662f\u975e\u963b\u585e\u7684\uff0c\u610f\u5473\u7740\u8c03\u7528\u65b9\u6cd5\u540e\uff0cCPU\u53ef\u4ee5\u53bb\u505a\u522b\u7684\u4e8b\u60c5\uff0c\u5f53\u63a5\u6536\u5230\u6570\u636e\u54cd\u5e94\u65f6CPU\u518d\u56de\u6765\u5904\u7406\uff0c\u8fd9\u79cd\u65b9\u5f0f\u63d0\u9ad8\u4e86\u7cfb\u7edf\u7684\u541e\u5410\u91cf\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u800c\u54cd\u5e94\u5f0f\u7f16\u7a0b\uff0c\u5176\u5b9e\u662f\u4e3a\u8fd9\u79cd\u5f02\u6b65\u975e\u963b\u585e\u7684\u6d41\u5f0f\u7f16\u7a0b\u5236\u5b9a\u7684\u4e00\u5957\u6807\u51c6\u3002\u6d41\u5f0f\u7f16\u7a0b\u5df2\u4e0d\u964c\u751f\u4e86\uff0cJava8\u63d0\u4f9b\u7684stream api\u5c31\u662f\u8fd9\u79cd\u98ce\u683c\u3002\u8fd9\u5957\u6807\u51c6\u5305\u62ec\u5bf9\u8fd0\u884c\u73af\u5883\uff08JVM\u3001JavaScript\uff09\u4ee5\u53ca\u7f51\u7edc\u534f\u8bae\u76f8\u5173\u7684\u89c4\u8303\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin: 0.6em auto;padding-left: 10px;border-left: 2px solid rgb(0, 150, 136);\"><span style=\"display: none;\"><\/span>Spring-webflux\u7684\u54cd\u5e94\u5f0fAPI<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Spring-webflux\u6846\u67b6\u662f\u57fa\u4e8eReactor\u8fd9\u4e2a\u5f00\u6e90\u9879\u76ee\u5f00\u53d1\u7684\u3002Reactor\u6846\u67b6\u662f\u8ddfSpring\u7d27\u5bc6\u914d\u5408\u7684\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5b83\u63d0\u4f9b\u4e86\u4e24\u79cdAPI\u7c7b\u578b\uff0c\u5206\u522b\u662fMono\u548cFlux\uff1b<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/wJibWkqN1bUMGV1UTPd8Fdvgb6sGPMuz7Tw1RMaArdWicfUBJcg2BMHmibH6ptsXzMCMtg3zXAa6dmYZicQA5dM183ENtj6flMVN\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;Mono\u4e00\u822c\u4f5c\u7528\u4e8e\u5355\u4e2a\u5bf9\u8c61<\/span>\nMono&lt;Person&gt;&nbsp;person&nbsp;=&nbsp;personDao.getPerson(personId);\n<span style=\"color: #5c6370;font-style: italic;line-height: 26px;\">\/\/&nbsp;Flux\u4e00\u822c\u4f5c\u7528\u4e8e\u591a\u4e2a\u5bf9\u8c61<\/span>\nFlux&lt;Person&gt;&nbsp;people&nbsp;=&nbsp;personDao.listAllPeople();\n<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5c3d\u7ba1webflux\u6846\u67b6\u57fa\u4e8eReactor\uff0c\u5b83\u4e5f\u80fd\u4e0e\u5176\u4ed6\u7684\u54cd\u5e94\u5f0f\u6846\u67b6\u540c\u65f6\u4f7f\u7528\uff0c\u6bd4\u5982RxJava\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin: 0.6em auto;padding-left: 10px;border-left: 2px solid rgb(0, 150, 136);\"><span style=\"display: none;\"><\/span>\u9009\u62e9Spring-webmvc\u8fd8\u662fSpring-webflux\u5462<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u8fd9\u4e24\u4e2aweb\u6846\u67b6\u5206\u522b\u4ee3\u8868\u7740\u4e24\u79cd\u4e0d\u540c\u7c7b\u578b\u7684\u7f16\u7a0b\u6d41\u6d3e\uff0c\u5b98\u65b9\u7ed9\u51fa\u4e86\u4e00\u4e2a\u56fe\u4f5c\u4e3a\u5bf9\u6bd4\u5982\u4e0b<\/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;\">\n  <img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.575\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" png\"=\"\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.575\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png\" png\"=\"\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;\"><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u6839\u636e\u5b98\u65b9\u7684\u5efa\u8bae\u6709\u4ee5\u4e0b\u51e0\u70b9\u53ef\u4ee5\u4f5c\u4e3a\u53c2\u8003\uff1a<\/p>\n<ul data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 8px;margin-bottom: 8px;padding-left: 25px;\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">\u5982\u679c\u4f60\u5df2\u7ecf\u4f7f\u7528\u4e86Spring-webmvc\u8fdb\u884c\u5f00\u53d1\uff0c\u5e76\u4e14\u9879\u76ee\u8fd0\u884c\u826f\u597d\uff0c\u5c31\u65e0\u9700\u66f4\u6539\u4e86\uff1b\u4f55\u51b5\u73b0\u5728\u5927\u591a\u6570\u7684\u4e09\u65b9\u5e93\u90fd\u662f\u963b\u585e\u7684\uff0c\u5e76\u4e0d\u80fd\u53d1\u6325\u51fa\u975e\u963b\u585e\u7684\u4f18\u52bf\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">webflux\u63d0\u4f9b\u4e86\u76f8\u5f53\u591a\u7684\u9009\u62e9\uff1b\u5728\u670d\u52a1\u5c42\uff0c\u53ef\u4ee5\u4f7f\u7528(Netty, Tomcat, Jetty, Undertow, \u548c3.1\u7248\u672c\u4ee5\u4e0a\u7684Servlet\u5bb9\u5668)\u4f5c\u4e3aweb\u670d\u52a1\uff1b\u5728\u5e94\u7528\u5c42\uff0c\u53ef\u4ee5\u9009\u62e9\u7528<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(0, 150, 136);\">@Controller<\/code>\u5b9a\u4e49\u8fd8\u662f\u4f7f\u7528\u51fd\u6570\u7f16\u7a0b\u5b9a\u4e49\uff1b\u5728\u7f16\u7a0b\u98ce\u683c\u4e0a\uff0c\u53ef\u4ee5\u9009\u62e9\u7528Reactor\u3001RxJava\u6216\u5176\u4ed6\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">\u5982\u679c\u4f60\u949f\u7231Java8\u63d0\u4f9b\u7684lambda\u8868\u8fbe\u5f0f\u8fd9\u79cd\u8f7b\u91cf\u7ea7\u3001\u51fd\u6570\u5f0f\u7684\u7f16\u7a0b\u98ce\u683c\uff0c\u90a3\u4e48\u5efa\u8bae\u9009\u62e9\u7528webflux\uff1b\u540c\u65f6\u5bf9\u4e8e\u4e00\u4e9b\u8f7b\u91cf\u7ea7\u5e94\u7528\uff0c\u6216\u8005\u590d\u6742\u5ea6\u6bd4\u8f83\u4f4e\u7684\u5fae\u670d\u52a1\uff0c\u5efa\u8bae\u4f7f\u7528webflux\u4ee5\u4fbf\u66f4\u597d\u7684\u8fdb\u884c\u63a7\u5236\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">\u5728\u5fae\u670d\u52a1\u67b6\u6784\u4e2d\uff0c\u53ef\u4ee5\u5c06webmvc\u548cwebflux\u9879\u76ee\u6df7\u5408\u4f7f\u7528\u3002\u4e24\u4e2a\u6846\u67b6\u90fd\u53ef\u4ee5\u4f7f\u7528<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(0, 150, 136);\">@Controller<\/code>\u8fd9\u79cd\u6ce8\u89e3\u7684\u65b9\u5f0f\uff0c\u4f7f\u5f97\u9879\u76ee\u7684\u91cd\u7528\u66f4\u52a0\u5bb9\u6613\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">\u8bc4\u4f30\u4e00\u4e2a\u9879\u76ee\u662f\u5426\u5e94\u8be5\u9009\u62e9webflux\u7684\u6700\u7b80\u5355\u7684\u65b9\u5f0f\u662f\uff0c\u4f9d\u636e\u9879\u76ee\u4e2d\u662f\u5426\u4f1a\u4f7f\u7528\u5f88\u591a\u7684\u963b\u585eAPI\uff0c\u6bd4\u5982JDBC\u6216\u8005\u4e00\u4e9b\u963b\u585e\u5f0f\u7684API\u5c31\u4e0d\u9002\u7528\u4e0ewebflux\u9879\u76ee\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">\u5982\u679c\u4e00\u4e2awebmvc\u9879\u76ee\u4e2d\u6709\u5f88\u591a\u7684\u5916\u90e8\u7cfb\u7edf\u8c03\u7528\uff0c\u53ef\u4ee5\u8bd5\u8bd5\u54cd\u5e94\u5f0f\u7684WebClient\uff0c\u5b83\u80fd\u76f4\u63a5\u4eceController\u7684\u65b9\u6cd5\u4e2d\u8fd4\u56de\u54cd\u5e94\u5f0f\u7ed3\u679c\u3002<\/p>\n<\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;line-height: 26px;color: rgb(1, 1, 1);\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;color: black;text-align: justify;\">\u54cd\u5e94\u5f0f\u7f16\u7a0b\u7684\u5b66\u4e60\u8def\u7ebf\u662f\u6bd4\u8f83\u9661\u5ced\u7684\uff0c\u6240\u4ee5\u5982\u679c\u4f60\u8eab\u5728\u4e00\u4e2a\u5927\u578b\u7684\u56e2\u961f\u4e2d\uff0c\u8981\u8003\u8651\u6295\u5165\u7684\u6210\u672c\uff1b\u4e0d\u8fc7\u53ef\u4ee5\u7528\u7528WebClient\u6765\u4f53\u9a8c\u4e0b\u54cd\u5e94\u5f0f\u7f16\u7a0b\u3002<\/p>\n<\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">Spring-webflux\u4e0d\u4ec5\u53ef\u4ee5\u652f\u6301\u5728Tomcat\u3001Jetty\u4ee5\u53ca3.1\u7248\u672c\u4ee5\u4e0a\u7684Servlet\u5bb9\u5668\u4e0a\uff0c\u8fd8\u80fd\u591f\u8fd0\u884c\u5728\u975eServlet\u7684\u670d\u52a1\u5668\u4e4b\u4e0a\uff0c\u6bd4\u5982Netty\u3001Undertow\u7b49\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u4f7f\u7528Springboot\u6784\u5efa\u4e00\u4e2awebflux\u5e94\u7528\uff0c\u9ed8\u8ba4\u5c31\u662f\u4f7f\u7528Netty\uff0c\u56e0\u4e3aNetty\u672c\u8eab\u5c31\u662f\u975e\u963b\u585e\u5f0f\u7684\u5b9e\u73b0\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin: 0.6em auto;padding-left: 10px;border-left: 2px solid rgb(0, 150, 136);\"><span style=\"display: none;\"><\/span>\u5e76\u53d1\u6a21\u578b<span style=\"display: none;\"><\/span><\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5c3d\u7ba1webmvc\u548cwebflux\u90fd\u652f\u6301\u4f7f\u7528\u6ce8\u89e3\u6765\u5b9a\u4e49\u4e00\u4e2aController\uff0c\u4f46\u662f\u5176\u5b9e\u73b0\u65b9\u5f0f\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">webmvc\u662f\u4e00\u4e2aServlet\u5e94\u7528\uff0c\u5b9e\u73b0\u662f\u963b\u585e\u5f0fIO\uff0c\u5176\u7ef4\u62a4\u4e00\u4e2a\u7ebf\u7a0b\u6c60\u6765\u5904\u7406\u6bcf\u4e00\u4e2a\u7528\u6237\u8bf7\u6c42\uff0c\u4e5f\u5c31\u662f\u5f53Servlet\u5bb9\u5668\u542f\u52a8\u65f6\uff0c\u5c31\u4f1a\u521b\u5efa\u6bd4\u598210\u4e2a\u7ebf\u7a0b\u51fa\u6765\uff0c\u56e0\u6b64\u7cfb\u7edf\u541e\u5410\u91cf\u7684\u74f6\u9888\u5728\u4e8e\u6709\u9650\u7684\u8fde\u63a5\u6570\u548c\u963b\u585e\u7684\u8bf7\u6c42\u5904\u7406\u8fc7\u7a0b\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">webflux\u53ef\u4ee5\u57fa\u4e8enetty\u8fd9\u6837\u7684NIO\u7f51\u7edc\u6846\u67b6\uff0c\u5b83\u53ea\u9700\u8981\u5f88\u5c11\u7684\u51e0\u4e2a\u5de5\u4f5c\u7ebf\u7a0b\uff08Event loop worker\uff09\u5c31\u80fd\u591f\u5904\u7406\u5e76\u54cd\u5e94\u8bf7\u6c42\u3002\u7531\u4e8e\u65e0\u9700\u963b\u585e\u7b49\u5f85\u65b9\u6cd5\u8fd4\u56de\uff0cCPU\u8d44\u6e90\u5c31\u5f97\u5230\u4e86\u66f4\u597d\u7684\u5229\u7528\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">webflux\u5e76\u4e0d\u80fd\u8ba9\u7a0b\u5e8f\u8fd0\u884c\u5730\u66f4\u5feb\uff1b\u800c\u662f\u63d0\u9ad8\u4e86\u5e76\u53d1\u5904\u7406\u8bf7\u6c42\u7684\u80fd\u529b\uff0c\u5373\u63d0\u9ad8\u4e86\u7cfb\u7edf\u541e\u5410\u91cf\u3002<\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"font-weight: bold;font-size: 20px;margin: 0.6em auto;padding-left: 10px;border-left: 2px solid rgb(0, 150, 136);\"><span style=\"display: none;\"><\/span>webflux\u4ee3\u7801\u793a\u4f8b<span style=\"display: none;\"><\/span><\/h3>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-top: none;border-bottom: none;font-size: 0.9em;overflow: auto;background: rgba(0, 0, 0, 0.05);padding: 10px 10px 10px 1em;margin-bottom: 20px;margin-top: 20px;border-left-width: 2px;border-left-color: rgb(136, 136, 136);border-right: 2px solid rgb(136, 136, 136);color: rgb(119, 119, 119);\">\n<p style=\"font-size: 16px;padding-top: 8px;padding-bottom: 8px;text-align: justify;color: black;line-height: 26px;\">Talk is cheap, show me the code<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u4e0b\u9762\u8ba9\u6211\u4eec\u6765\u770b\u4e00\u4e0bwebflux\u7684\u793a\u4f8b\uff0c\u603b\u7684\u6765\u8bf4\u4f7f\u7528\u4e0a\u662f\u975e\u5e38\u4fbf\u6377\u7684\u3002<\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u6211\u4eec\u7528Springboot\u6784\u5efa\u4e00\u4e2awebflux\u5e94\u7528\u975e\u5e38\u7b80\u5355\uff0c\u4ec5\u4ec5\u9700\u8981\u52a0\u5165\u8fd9\u4e48\u4e00\u4e2a\u4f9d\u8d56<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/wJibWkqN1bUMGV1UTPd8Fdvgb6sGPMuz7Tw1RMaArdWicfUBJcg2BMHmibH6ptsXzMCMtg3zXAa6dmYZicQA5dM183ENtj6flMVN\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span>\n&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>org.springframework.boot<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">groupId<\/span>&gt;<\/span>\n&nbsp;<span style=\"line-height: 26px;\">&lt;<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>spring-boot-starter-webflux<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">artifactId<\/span>&gt;<\/span>\n<span style=\"line-height: 26px;\">&lt;\/<span style=\"color: #e06c75;line-height: 26px;\">dependency<\/span>&gt;<\/span>\n<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u9996\u5148\u5b9a\u4e49\u4e00\u4e2a\u5bf9\u8c61<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/wJibWkqN1bUMGV1UTPd8Fdvgb6sGPMuz7Tw1RMaArdWicfUBJcg2BMHmibH6ptsXzMCMtg3zXAa6dmYZicQA5dM183ENtj6flMVN\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">Person<\/span>&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;Integer&nbsp;id;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;Integer&nbsp;age;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;String&nbsp;name;\n}\n<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u7136\u540e\u5b9a\u4e49\u201c<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(0, 150, 136);\">PersonController<\/code>\u201d\uff0c\u54cd\u5e94\u5f0f\u98ce\u683c\u4e2d\u4e0d\u518d\u4f7f\u7528<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(0, 150, 136);\">@RequestMapping<\/code>\u58f0\u660e\u5730\u5740\u6620\u5c04\u4e86\uff0c\u800c\u662f\u901a\u8fc7<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(0, 150, 136);\">RouterFunctions.route().GET()<\/code>\u65b9\u6cd5<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/wJibWkqN1bUMGV1UTPd8Fdvgb6sGPMuz7Tw1RMaArdWicfUBJcg2BMHmibH6ptsXzMCMtg3zXAa6dmYZicQA5dM183ENtj6flMVN\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">@Configuration<\/span>\n<span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">PersonRouter<\/span>&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Resource<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;PersonHandler&nbsp;personHandler;\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Bean<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;RouterFunction&lt;ServerResponse&gt;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">personRoutes<\/span><span style=\"line-height: 26px;\">()<\/span>&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;RouterFunctions.route()\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.GET(<span style=\"color: #98c379;line-height: 26px;\">\"\/person\/{id}\"<\/span>,&nbsp;RequestPredicates.accept(MediaType.APPLICATION_JSON),&nbsp;personHandler::getPerson)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.GET(<span style=\"color: #98c379;line-height: 26px;\">\"\/person\"<\/span>,&nbsp;RequestPredicates.accept(MediaType.APPLICATION_JSON),&nbsp;personHandler::listPeople)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.POST(<span style=\"color: #98c379;line-height: 26px;\">\"\/person\"<\/span>,&nbsp;personHandler::createPerson)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.build();\n&nbsp;&nbsp;&nbsp;&nbsp;}\n}\n<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u5728PersonHandler\u4e2d\u5904\u7406\u5bf9\u5e94\u7684HTTP\u8bf7\u6c42\uff0c\u7b49\u540c\u4e8eMVC\u67b6\u6784\u4e2d\u7684Service\u5c42<\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;\"><span style=\"display: block;background: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/wJibWkqN1bUMGV1UTPd8Fdvgb6sGPMuz7Tw1RMaArdWicfUBJcg2BMHmibH6ptsXzMCMtg3zXAa6dmYZicQA5dM183ENtj6flMVN\/640?wx_fmt=svg&quot;) 10px 10px \/ 40px no-repeat rgb(40, 44, 52);height: 30px;width: 100%;margin-bottom: -7px;border-radius: 5px;\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;display: -webkit-box;font-family: Operator Mono, Consolas, Monaco, Menlo, monospace;font-size: 12px;-webkit-overflow-scrolling: touch;padding-top: 15px;background: #282c34;border-radius: 5px;\"><span style=\"color: #61aeee;line-height: 26px;\">@Component<\/span>\n<span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">class<\/span>&nbsp;<span style=\"color: #e6c07b;line-height: 26px;\">PersonHandler<\/span>&nbsp;<\/span>{\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">@Resource<\/span>\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">private<\/span>&nbsp;PersonRepository&nbsp;personDao;\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;Mono&lt;ServerResponse&gt;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">listPeople<\/span><span style=\"line-height: 26px;\">(ServerRequest&nbsp;request)<\/span>&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Flux&lt;Person&gt;&nbsp;people&nbsp;=&nbsp;personDao.listAllPeople();\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;ServerResponse.ok()\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.contentType(MediaType.APPLICATION_JSON)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.body(people,&nbsp;Person<span style=\"line-height: 26px;\">.<span style=\"color: #c678dd;line-height: 26px;\">class<\/span>)<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;Mono&lt;ServerResponse&gt;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">createPerson<\/span><span style=\"line-height: 26px;\">(ServerRequest&nbsp;request)<\/span>&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Mono&lt;Person&gt;&nbsp;person&nbsp;=&nbsp;request.bodyToMono(Person<span style=\"line-height: 26px;\">.<span style=\"color: #c678dd;line-height: 26px;\">class<\/span>)<\/span>;\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;ServerResponse.ok()\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.build(personDao.savePerson(person));\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\">public<\/span>&nbsp;Mono&lt;ServerResponse&gt;&nbsp;<span style=\"color: #61aeee;line-height: 26px;\">getPerson<\/span><span style=\"line-height: 26px;\">(ServerRequest&nbsp;request)<\/span>&nbsp;<\/span>{\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">int<\/span>&nbsp;personId&nbsp;=&nbsp;Integer.parseInt(request.pathVariable(<span style=\"color: #98c379;line-height: 26px;\">\"id\"<\/span>));\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #c678dd;line-height: 26px;\">return<\/span>&nbsp;personDao.getPerson(personId)\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.flatMap(person&nbsp;-&gt;&nbsp;ServerResponse.ok().contentType(MediaType.APPLICATION_JSON).bodyValue(person))\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.switchIfEmpty(ServerResponse.notFound().build());\n&nbsp;&nbsp;&nbsp;&nbsp;}\n\n}\n<\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u901a\u8fc7\u542f\u52a8\u65e5\u5fd7\u53ef\u4ee5\u8bc1\u5b9eSpring-webflux\u662f\u9ed8\u8ba4\u4f7f\u7528Netty\u63d0\u4f9bHTTP\u670d\u52a1<\/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;\">\n  <img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"0.05555555555555555\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/20230714152719afafe81b7.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" png\"=\"\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"0.05555555555555555\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/20230714152719afafe81b7.png\" png\"=\"\" data-w=\"1080\" style=\"display: block;margin-right: auto;margin-left: auto;\"><\/noscript><\/figure>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;text-align: justify;\">\u9879\u76ee\u542f\u52a8\u4e4b\u540e\u6d4f\u89c8\u5668\u8bbf\u95ee<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(0, 150, 136);\">http:\/\/localhost:8080\/person\/1<\/code>\u5c31\u80fd\u53d1\u73b0\uff0c\u4f60\u7684Spring-webflux\u9879\u76ee\u5df2\u7ecf\u6b63\u5e38\u5de5\u4f5c\u4e86\u3002<\/p>\n<\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-bottom: 0px;padding-right: 10px;padding-left: 10px;outline: 0px;white-space: normal;color: black;font-size: 16px;letter-spacing: 0px;text-align: left;background-color: rgb(255, 255, 255);line-height: 1.6;word-break: break-word;font-family: PingFangSC-Light;\">\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">\u6765\u6e90\uff1ablog.csdn.net\/yasin_huang\/article\/<\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\">details\/106556935<\/em><\/h3>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"outline: 0px;font-family: -apple-system, BlinkMacSystemFont, &quot;Helvetica Neue&quot;, &quot;PingFang SC&quot;, &quot;Hiragino Sans GB&quot;, &quot;Microsoft YaHei UI&quot;, &quot;Microsoft YaHei&quot;, Arial, sans-serif;letter-spacing: 0.544px;text-align: right;\"><em style=\"outline: 0px;color: rgb(136, 136, 136);font-size: 12px;letter-spacing: 0.5px;\"><\/em><\/h3>\n<\/section>\n<section style=\"margin-bottom: 0px;outline: 0px;letter-spacing: 0.544px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;caret-color: rgb(60, 60, 60);font-family: mp-quote, -apple-system-font, BlinkMacSystemFont, Arial, sans-serif;text-align: center;widows: 1;background-color: rgb(255, 255, 255);\">\n <span style=\"outline: 0px;font-size: 20px;color: rgb(255, 0, 0);\"><strong style=\"outline: 0px;\">\u540e\u7aef\u4e13\u5c5e\u6280\u672f\u7fa4<\/strong><\/span><br \/>\n<br style=\"outline: 0px;\"><br \/>\n<\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);text-align: center;widows: 1;background-color: rgb(255, 255, 255);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: 26px;visibility: visible;\">\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u6280\u672f\u4ea4\u6d41\u793e\u7fa4\uff0c\u6b22\u8fce\u4ece\u4e8b\u7f16\u7a0b\u5f00\u53d1\u3001\u6280\u672f\u62db\u8058HR\u8fdb\u7fa4\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5206\u4eab\u81ea\u5df1\u516c\u53f8\u7684\u5185\u63a8\u4fe1\u606f\uff0c\u76f8\u4e92\u5e2e\u52a9\uff0c\u4e00\u8d77\u8fdb\u6b65\uff01<\/p>\n<blockquote data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 20px;margin-bottom: 20px;padding: 10px 10px 10px 1em;outline: 0px;border-left-width: 2px;border-left-color: rgb(136, 136, 136);color: rgb(119, 119, 119);font-size: 0.9em;white-space: normal;letter-spacing: normal;text-align: left;caret-color: rgb(60, 60, 60);widows: 1;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;border-top: none;border-bottom: none;overflow: auto;background: rgba(0, 0, 0, 0.05);border-right: 2px solid rgb(136, 136, 136);visibility: visible;\">\n<p style=\"padding-top: 8px;padding-bottom: 8px;outline: 0px;font-size: 16px;text-align: justify;color: black;line-height: 26px;visibility: visible;\">\u6587\u660e\u53d1\u8a00\uff0c\u4ee5<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u4ea4\u6d41\u6280\u672f<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u804c\u4f4d\u5185\u63a8<\/code>\u3001<code style=\"margin-right: 2px;margin-left: 2px;padding: 2px 4px;outline: 0px;font-size: 14px;border-radius: 4px;background-color: rgba(27, 31, 35, 0.05);font-family: &quot;Operator Mono&quot;, Consolas, Monaco, Menlo, monospace;word-break: break-all;color: rgb(0, 150, 136);visibility: visible;\">\u884c\u4e1a\u63a2\u8ba8<\/code>\u4e3a\u4e3b<\/p>\n<\/blockquote>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-bottom: 0px;padding-top: 8px;padding-bottom: 8px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;caret-color: rgb(60, 60, 60);text-align: center;widows: 1;background-color: rgb(255, 255, 255);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: 26px;visibility: visible;\">\u5e7f\u544a\u4eba\u58eb\u52ff\u5165\uff0c\u5207\u52ff\u8f7b\u4fe1\u79c1\u804a\uff0c\u9632\u6b62\u88ab\u9a97<\/p>\n<figure data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 10px;margin-bottom: 10px;outline: 0px;white-space: normal;color: rgb(0, 0, 0);font-size: 16px;letter-spacing: normal;text-align: left;caret-color: rgb(60, 60, 60);widows: 1;background-color: rgb(255, 255, 255);font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;display: flex;flex-direction: column;justify-content: center;align-items: center;visibility: visible;\">\n <img decoding=\"async\" class=\"rich_pages wxw-img lazyload\" data-ratio=\"1.3642105263157895\" data-src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/202307141527199b9bb0a3c.png\" src=\"https:\/\/s.nmxc.ltd\/sakurairo_vision\/@2.6\/load_svg\/inload.svg\" onerror=\"imgError(this)\" data-w=\"950\" style=\"margin-right: auto;margin-left: auto;outline: 0px;display: block;visibility: visible !important;width: 309px !important;\"><noscript><img decoding=\"async\" class=\"rich_pages wxw-img\" data-ratio=\"1.3642105263157895\" src=\"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/202307141527199b9bb0a3c.png\" data-w=\"950\" style=\"margin-right: auto;margin-left: auto;outline: 0px;display: block;visibility: visible !important;width: 309px !important;\"><\/noscript><figcaption style=\"margin-top: 5px;outline: 0px;text-align: center;color: rgb(136, 136, 136);font-size: 14px;visibility: visible;\">\n  \u52a0\u6211\u597d\u53cb\uff0c\u62c9\u4f60\u8fdb\u7fa4<br \/>\n<\/figcaption><\/figure>\n<p style=\"display: none;\">\n <mp-style-type data-value=\"10000\"><\/mp-style-type><\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u6765\u6e90\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff1ahttps:\/\/mp.weixin.qq.com\/s\/V8Wc0TPq3geuiWQCBDqTUQ<\/p>\n","raw":"","protected":false},"excerpt":{"rendered":"<p>Spring-webflux\u7b80\u4ecb spring-webflux\u662fspring\u57285.0\u7248\u672c\u540e\u63d0\u4f9b\u7684\u4e00\u5957\u54cd\u5e94\u5f0f\u7f16\u7a0b\u98ce\u683c\u7684web\u5f00\u53d1\u6846\u67b6 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-2933","post","type-post","status-publish","format-standard","hentry","category-spring"],"post_thumbnail_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","content_first_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_medium_image_300":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_thumbnail_image_624":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_frist_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_medium_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_large_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_full_image":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","post_all_images":[{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","id":"image0"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-18\/20230714152718e8e816234.png","id":"image1"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/20230714152719afafe81b7.png","id":"image2"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/20230714152719afafe81b7.png","id":"image3"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/202307141527199b9bb0a3c.png","id":"image4"},{"imagesurl":"https:\/\/wp-moto-1258805347.cos.ap-shanghai.myqcloud.com\/default\/nine\/2023-07-14\/15-27-19\/202307141527199b9bb0a3c.png","id":"image5"}],"videoAdId":"","listAd":"0","listAdId":"","listAdEvery":6,"total_comments":0,"category_name":"Spring","post_date":"2023-07-14","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":586,"next_post_id":2937,"next_post_title":"SpringBoot \u4e2d\u7684\u591a\u7ebf\u7a0b\u4e8b\u52a1\u5904\u7406\u592a\u7e41\u7410\uff1f\u4e00\u4e2a\u81ea\u5b9a\u4e49\u6ce8\u89e3\u76f4\u63a5\u641e\u5b9a\uff01","previous_post_id":2410,"previous_post_title":"Spring\u7684Bean\u52a0\u8f7d\u6d41\u7a0b","_links":{"self":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2933","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=2933"}],"version-history":[{"count":0,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/posts\/2933\/revisions"}],"wp:attachment":[{"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/media?parent=2933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/categories?post=2933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xinchewhd.com.cn\/index.php\/wp-json\/wp\/v2\/tags?post=2933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}