{"id":10008011,"date":"2023-06-28T17:59:00","date_gmt":"2023-06-28T09:59:00","guid":{"rendered":"https:\/\/ityet.com\/?p=10008011"},"modified":"2023-06-28T17:59:00","modified_gmt":"2023-06-28T09:59:00","slug":"spring-%e8%b5%8c%e4%b8%8a%e6%9c%aa%e6%9d%a5%e4%b8%80%e5%87%bb%ef%bc%8c%e6%8e%a8%e5%87%ba%e5%93%8d%e5%ba%94%e5%bc%8f%e6%a1%86%e6%9e%b6-webflux%ef%bc%8c%e4%bb%a3%e7%a0%81%e6%9b%b4%e4%bc%98%e9%9b%85","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008011","title":{"rendered":"Spring \u8d4c\u4e0a\u672a\u6765\u4e00\u51fb\uff0c\u63a8\u51fa\u54cd\u5e94\u5f0f\u6846\u67b6 WebFlux\uff0c\u4ee3\u7801\u66f4\u4f18\u96c5\uff0c\u6027\u80fd\u66f4\u5f3a\uff01"},"content":{"rendered":"<h3>Spring-webflux\u7b80\u4ecb<\/h3>\n<p>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>\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>\u4ec0\u4e48\u662f\u201c\u54cd\u5e94\u5f0f\u201d<\/h3>\n<p>\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>\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>Spring-webflux\u7684\u54cd\u5e94\u5f0fAPI<\/h3>\n<p>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>\u5b83\u63d0\u4f9b\u4e86\u4e24\u79cdAPI\u7c7b\u578b\uff0c\u5206\u522b\u662fMono\u548cFlux\uff1b<\/p>\n<pre><code>\/\/ Mono\u4e00\u822c\u4f5c\u7528\u4e8e\u5355\u4e2a\u5bf9\u8c61\nMono&lt;Person&gt; person = personDao.getPerson(personId);\n\/\/ Flux\u4e00\u822c\u4f5c\u7528\u4e8e\u591a\u4e2a\u5bf9\u8c61\nFlux&lt;Person&gt; people = personDao.listAllPeople();<\/code><\/pre>\n<p>\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<p>\u63a8\u8350\u4e00\u4e2a\u5f00\u6e90\u514d\u8d39\u7684 Spring Boot \u5b9e\u6218\u9879\u76ee\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=yWYSrCNfOtuO5vcgP%2BwflA%3D%3D.gL8oB8615ZG8aaqrmnYIBBg7M%2F22ZTRGOmWQkVorroNucDM09oVe%2FxnwWilu3XUS0yYXdTNtlOqhU0UhGJaVAQ%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/javastacks\/spring-boot-best-practice<\/a><\/p><\/blockquote>\n<h3>\u9009\u62e9Spring-webmvc\u8fd8\u662fSpring-webflux\u5462<\/h3>\n<p>\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<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc8ynG\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u6839\u636e\u5b98\u65b9\u7684\u5efa\u8bae\u6709\u4ee5\u4e0b\u51e0\u70b9\u53ef\u4ee5\u4f5c\u4e3a\u53c2\u8003\uff1a<\/p>\n<ul>\n<li>\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<\/li>\n<li>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>@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<\/li>\n<li>\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<\/li>\n<li>\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>@Controller<\/code>\u8fd9\u79cd\u6ce8\u89e3\u7684\u65b9\u5f0f\uff0c\u4f7f\u5f97\u9879\u76ee\u7684\u91cd\u7528\u66f4\u52a0\u5bb9\u6613\u3002<\/li>\n<li>\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<\/li>\n<li>\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<\/li>\n<li>\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<\/li>\n<\/ul>\n<p>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>\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>\u5e76\u53d1\u6a21\u578b<\/h3>\n<p>\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>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>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>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>webflux\u4ee3\u7801\u793a\u4f8b<\/h3>\n<blockquote><p>Talk is cheap, show me the code<\/p><\/blockquote>\n<p>\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>\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><code>&lt;dependency&gt;\n &lt;groupId&gt;org.springframework.boot&lt;\/groupId&gt;\n &lt;artifactId&gt;spring-boot-starter-webflux&lt;\/artifactId&gt;\n&lt;\/dependency&gt;<\/code><\/pre>\n<p>\u9996\u5148\u5b9a\u4e49\u4e00\u4e2a\u5bf9\u8c61<\/p>\n<pre><code>public class Person {\n    private Integer id;\n    private Integer age;\n    private String name;\n}<\/code><\/pre>\n<p>\u7136\u540e\u5b9a\u4e49\u201c<code>PersonController<\/code>\u201d\uff0c\u54cd\u5e94\u5f0f\u98ce\u683c\u4e2d\u4e0d\u518d\u4f7f\u7528<code>@RequestMapping<\/code>\u58f0\u660e\u5730\u5740\u6620\u5c04\u4e86\uff0c\u800c\u662f\u901a\u8fc7<code>RouterFunctions.route().GET()<\/code>\u65b9\u6cd5<\/p>\n<pre><code>@Configuration\npublic class PersonRouter {\n    @Resource\n    private PersonHandler personHandler;\n    @Bean\n    public RouterFunction&lt;ServerResponse&gt; personRoutes() {\n        return RouterFunctions.route()\n                .GET(&quot;\/person\/{id}&quot;, RequestPredicates.accept(MediaType.APPLICATION_JSON), personHandler::getPerson)\n                .GET(&quot;\/person&quot;, RequestPredicates.accept(MediaType.APPLICATION_JSON), personHandler::listPeople)\n                .POST(&quot;\/person&quot;, personHandler::createPerson)\n                .build();\n    }\n}<\/code><\/pre>\n<p>\u5728PersonHandler\u4e2d\u5904\u7406\u5bf9\u5e94\u7684HTTP\u8bf7\u6c42\uff0c\u7b49\u540c\u4e8eMVC\u67b6\u6784\u4e2d\u7684Service\u5c42<\/p>\n<pre><code>@Component\npublic class PersonHandler {\n\n    @Resource\n    private PersonRepository personDao;\n\n    public Mono&lt;ServerResponse&gt; listPeople(ServerRequest request) {\n        Flux&lt;Person&gt; people = personDao.listAllPeople();\n        return ServerResponse.ok()\n                .contentType(MediaType.APPLICATION_JSON)\n                .body(people, Person.class);\n    }\n\n    public Mono&lt;ServerResponse&gt; createPerson(ServerRequest request) {\n        Mono&lt;Person&gt; person = request.bodyToMono(Person.class);\n        return ServerResponse.ok()\n                .build(personDao.savePerson(person));\n    }\n\n    public Mono&lt;ServerResponse&gt; getPerson(ServerRequest request) {\n        int personId = Integer.parseInt(request.pathVariable(&quot;id&quot;));\n        return personDao.getPerson(personId)\n                .flatMap(person -&gt; ServerResponse.ok().contentType(MediaType.APPLICATION_JSON).bodyValue(person))\n                .switchIfEmpty(ServerResponse.notFound().build());\n    }\n\n}<\/code><\/pre>\n<p>\u901a\u8fc7\u542f\u52a8\u65e5\u5fd7\u53ef\u4ee5\u8bc1\u5b9eSpring-webflux\u662f\u9ed8\u8ba4\u4f7f\u7528Netty\u63d0\u4f9bHTTP\u670d\u52a1<\/p>\n<p><img decoding=\"async\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc8ynH\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u9879\u76ee\u542f\u52a8\u4e4b\u540e\u6d4f\u89c8\u5668\u8bbf\u95ee<code>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<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=aRmNNiud%2BeL9ZLM0HoAjXA%3D%3D.NN6TcWOI7nXKgUxWGrq3kgj%2BBYghl932N48rYixxVfhY46mmmuP%2F6rsMQaw%2B9i6T1160CMk3vrDT77vlxG6gIQ%3D%3D\" rel=\"nofollow\">https:\/\/blog.csdn.net\/yasin_huang\/article\/details\/106556935<\/a><\/p>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=HmIPiPHIptdYzlhW3zR6Ag%3D%3D.OqOkEpefVEaiLUwflyThre8Sqek%2BpchazdPjt7r1qvE%3D\" rel=\"nofollow\">1,000+ \u9053 Java\u9762\u8bd5\u9898\u53ca\u7b54\u6848\u6574\u7406(2022\u6700\u65b0\u7248)<\/a><\/p>\n<p>2.<a href=\"https:\/\/link.segmentfault.com\/?enc=U6ws6ZJGnKWs4hL6BO0KnA%3D%3D.Bf7xgnLMAvG%2BUEPMj5jJDH8tt5e942JDzxuKqBriGCUBDJRWb2tBf4UGUilujQt8gnxrzoorV7jGG3bZXABOVQ%3D%3D\" rel=\"nofollow\">\u52b2\u7206\uff01Java \u534f\u7a0b\u8981\u6765\u4e86\u3002\u3002\u3002<\/a><\/p>\n<p>3.<a href=\"https:\/\/link.segmentfault.com\/?enc=oWIflXCiTXsP6qzBGaY0og%3D%3D.%2FTrC9Ov5%2BBDGSgECHHgqJ4qh%2FBZ70F%2FSXcIc6yHixEU%2Bu6bMy97NYOQtM1sM1zHa\" rel=\"nofollow\">Spring Boot 2.x \u6559\u7a0b\uff0c\u592a\u5168\u4e86\uff01<\/a><\/p>\n<p>4.<a href=\"https:\/\/link.segmentfault.com\/?enc=RdCuft4ttecx2oLNBdv1kg%3D%3D.otvPWGZKsfWfPXx4cO7RNR2SEaP4J4Iq9Xq9B9So%2FDAuxQVEm8AtQnGpoxiX1pz6OTJQB2riMcc%2Box%2BTqlRDBQ%3D%3D\" rel=\"nofollow\">\u522b\u518d\u5199\u6ee1\u5c4f\u7684\u7206\u7206\u7206\u70b8\u7c7b\u4e86\uff0c\u8bd5\u8bd5\u88c5\u9970\u5668\u6a21\u5f0f\uff0c\u8fd9\u624d\u662f\u4f18\u96c5\u7684\u65b9\u5f0f\uff01\uff01<\/a><\/p>\n<p>5.<a href=\"https:\/\/link.segmentfault.com\/?enc=wmOa%2B06zcV50heUnqZFFFA%3D%3D.u3UQzhWPLSHEa3bVU0tvkxBKyXrKQyi9HfPsSybg%2BgR7jUNXtiayiE3Kda4H4%2FVPH5jIiWDsqRpj8X66TGG9kHuM%2BBEhnzSCraG%2B0uSDzBM%3D\" rel=\"nofollow\">\u300aJava\u5f00\u53d1\u624b\u518c\uff08\u5d69\u5c71\u7248\uff09\u300b\u6700\u65b0\u53d1\u5e03\uff0c\u901f\u901f\u4e0b\u8f7d\uff01<\/a><\/p>\n<p>\u89c9\u5f97\u4e0d\u9519\uff0c\u522b\u5fd8\u4e86\u968f\u624b\u70b9\u8d5e+\u8f6c\u53d1\u54e6\uff01<\/p>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000043945448\">https:\/\/segmentfault.com\/a\/1190000043945448<\/a><\/p>\n","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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-10008011","post","type-post","status-publish","format-standard","hentry","category-share"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10008011"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008011\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}