{"id":10008299,"date":"2023-09-20T20:38:00","date_gmt":"2023-09-20T12:38:00","guid":{"rendered":"https:\/\/blog.itmax.cn\/?p=10008299"},"modified":"2023-09-20T20:38:00","modified_gmt":"2023-09-20T12:38:00","slug":"spring-boot%e8%99%9a%e6%8b%9f%e7%ba%bf%e7%a8%8b%e4%b8%8ewebflux%e5%9c%a8jwt%e9%aa%8c%e8%af%81%e5%92%8cmysql%e6%9f%a5%e8%af%a2%e4%b8%8a%e7%9a%84%e6%80%a7%e8%83%bd%e6%af%94%e8%be%83","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10008299","title":{"rendered":"Spring Boot\u865a\u62df\u7ebf\u7a0b\u4e0eWebflux\u5728JWT\u9a8c\u8bc1\u548cMySQL\u67e5\u8be2\u4e0a\u7684\u6027\u80fd\u6bd4\u8f83"},"content":{"rendered":"<p>\u65e9\u4e0a\u770b\u5230\u4e00\u7bc7\u5173\u4e8eSpring Boot\u865a\u62df\u7ebf\u7a0b\u548cWebflux\u6027\u80fd\u5bf9\u6bd4\u7684\u6587\u7ae0\uff0c\u89c9\u5f97\u8fd8\u4e0d\u9519\u3002\u5185\u5bb9\u8f83\u957f\uff0c\u6211\u5c31\u4e0d\u7ffb\u8bd1\u4e86\uff0c\u6293\u91cd\u70b9\u7ed9\u5927\u5bb6\u4ecb\u7ecd\u4e00\u4e0b\u8fd9\u7bc7\u6587\u7ae0\u7684\u6838\u5fc3\u5185\u5bb9\uff0c\u65b9\u4fbf\u5927\u5bb6\u5feb\u901f\u9605\u8bfb\u3002<\/p>\n<h2>\u6d4b\u8bd5\u573a\u666f<\/h2>\n<p>\u4f5c\u8005\u91c7\u7528\u4e86\u4e00\u4e2a\u5c3d\u53ef\u80fd\u8d34\u8fd1\u73b0\u5b9e\u64cd\u4f5c\u7684\u573a\u666f\uff1a<\/p>\n<ol>\n<li>\u4ece\u6388\u6743\u5934\u4fe1\u606f\u4e2d\u63d0\u53d6<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=IB82N3s1dechp57lJxRX4Q%3D%3D.G1MV93rp0sijQI%2F8TF7LVkFwkarXxU4yyOcGUvzRHxnU%2BvaOw4drNoaqm8%2FGTx8SBY4knJR6yu00uQKuN%2Fejw3IVTxPyzd6IR1o3RuuUZ20%3D\" rel=\"noopener noreferrer\">JWT<\/a><\/li>\n<li>\u9a8c\u8bc1JWT\u5e76\u4ece\u4e2d\u63d0\u53d6\u7528\u6237\u7684Email<\/li>\n<li>\u4f7f\u7528\u7528\u6237\u7684Email\u53bbMySQL\u91cc\u6267\u884c\u67e5\u8be2<\/li>\n<li>\u8fd4\u56de\u7528\u6237\u8bb0\u5f55<\/li>\n<\/ol>\n<h2>\u6d4b\u8bd5\u6280\u672f<\/h2>\n<p>\u8fd9\u91cc\u8981\u5bf9\u6bd4\u7684\u4e24\u4e2a\u6838\u5fc3\u6280\u672f\u70b9\u662f\uff1a<\/p>\n<ol>\n<li>\u5e26\u6709\u865a\u62df\u7ebf\u7a0b\u7684Spring Boot\uff1a\u8fd9\u4e0d\u662f\u4e00\u4e2a\u8dd1\u5728\u4f20\u7edf\u7269\u7406\u7ebf\u7a0b\u4e0a\u7684Spring Boot\u5e94\u7528\uff0c\u800c\u662f\u8dd1\u5728\u865a\u62df\u7ebf\u7a0b\u4e0a\u7684\u3002\u8fd9\u4e9b\u8f7b\u91cf\u7ea7\u7ebf\u7a0b\u7b80\u5316\u4e86\u5f00\u53d1\u3001\u7ef4\u62a4\u548c\u8c03\u8bd5\u9ad8\u541e\u5410\u91cf\u5e76\u53d1\u5e94\u7528\u7a0b\u5e8f\u7684\u590d\u6742\u4efb\u52a1\u3002\u867d\u7136\u865a\u62df\u7ebf\u7a0b\u4ecd\u7136\u5728\u5e95\u5c42\u64cd\u4f5c\u7cfb\u7edf\u7ebf\u7a0b\u4e0a\u8fd0\u884c\uff0c\u4f46\u5b83\u4eec\u5e26\u6765\u4e86\u663e\u7740\u7684\u6548\u7387\u6539\u8fdb\u3002\u5f53\u865a\u62df\u7ebf\u7a0b\u9047\u5230\u963b\u585e I\/O \u64cd\u4f5c\u65f6\uff0cJava \u8fd0\u884c\u65f6\u4f1a\u6682\u65f6\u6302\u8d77\u5b83\uff0c\u4ece\u800c\u91ca\u653e\u5173\u8054\u7684\u64cd\u4f5c\u7cfb\u7edf\u7ebf\u7a0b\u6765\u4e3a\u5176\u4ed6\u865a\u62df\u7ebf\u7a0b\u63d0\u4f9b\u670d\u52a1\u3002\u8fd9\u4e2a\u4f18\u96c5\u7684\u89e3\u51b3\u65b9\u6848\u4f18\u5316\u4e86\u8d44\u6e90\u5206\u914d\u5e76\u589e\u5f3a\u4e86\u6574\u4f53\u5e94\u7528\u7a0b\u5e8f\u54cd\u5e94\u80fd\u529b\u3002<\/li>\n<li>Spring Boot Webflux\uff1aSpring Boot WebFlux\u662fSpring\u751f\u6001\u7cfb\u7edf\u4e2d\u7684\u53cd\u5e94\u5f0f\u7f16\u7a0b\u6846\u67b6\uff0c\u5b83\u5229\u7528Project Reactor\u5e93\u6765\u5b9e\u73b0\u975e\u963b\u585e\u3001\u4e8b\u4ef6\u9a71\u52a8\u7684\u7f16\u7a0b\u3002\u6240\u4ee5\uff0c\u5b83\u7279\u522b\u9002\u5408\u9700\u8981\u9ad8\u5e76\u53d1\u548c\u4f4e\u5ef6\u8fdf\u7684\u5e94\u7528\u7a0b\u5e8f\u3002\u4f9d\u9760\u53cd\u5e94\u5f0f\u65b9\u6cd5\uff0c\u5b83\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u6709\u6548\u5730\u5904\u7406\u5927\u91cf\u5e76\u53d1\u8bf7\u6c42\uff0c\u540c\u65f6\u4ecd\u7136\u63d0\u4f9b\u4e0e\u5404\u79cd\u6570\u636e\u6e90\u548c\u901a\u4fe1\u534f\u8bae\u96c6\u6210\u7684\u7075\u6d3b\u6027\u3002<\/li>\n<\/ol>\n<p>\u4e0d\u8bba\u662fWebflux\u8fd8\u662f\u865a\u62df\u7ebf\u7a0b\uff0c\u8fd9\u4e24\u4e2a\u90fd\u662f\u4e3a\u4e86\u63d0\u4f9b\u7a0b\u5e8f\u7684\u9ad8\u5e76\u53d1\u80fd\u529b\u800c\u751f\uff0c\u90a3\u4e48\u8c01\u66f4\u80dc\u4e00\u7b79\u5462\uff1f\u4e0b\u9762\u4e00\u8d77\u770b\u770b\u5177\u4f53\u7684\u6d4b\u8bd5\u3002<\/p>\n<h2>\u6d4b\u8bd5\u73af\u5883<\/h2>\n<p><strong>\u8fd0\u884c\u73af\u5883\u4e0e\u5de5\u5177<\/strong><\/p>\n<ul>\n<li>\u4e00\u53f016G\u5185\u5b58\u7684MacBook Pro M1<\/li>\n<li>Java 20<\/li>\n<li>Spring Boot 3.1.3<\/li>\n<li>\u542f\u7528\u9884\u89c8\u6a21\u5f0f\uff0c\u4ee5\u83b7\u5f97\u865a\u62df\u7ebf\u7a0b\u7684\u5f3a\u5927\u80fd\u529b<\/li>\n<li>\u4f9d\u8d56\u7684\u7b2c\u4e09\u65b9\u5e93\uff1ajjwt\u3001mysql-connector-java<\/li>\n<li>\u6d4b\u8bd5\u5de5\u5177\uff1aBombardier<\/li>\n<li>\u6570\u636e\u5e93\uff1aMySQL<\/li>\n<\/ul>\n<p><strong>\u6570\u636e\u51c6\u5907<\/strong><\/p>\n<ul>\n<li>\u5728Bombardier\u4e2d\u51c6\u5907100000\u4e2aJWT\u5217\u8868\uff0c\u7528\u6765\u4ece\u4e2d\u968f\u673a\u9009\u53d6<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=uCA61Z1pIj4dI0Of2I7dxg%3D%3D.ZOJ1epqT4Lh6aMbLwz9Bgvpk7nT%2BWdwisq%2BfaQ7le0bNM%2BCWUZlgngpXZot0WGxt7UvMC6CSa1ZdaftLvML6zLVRSOkH9memFYe3cVau6IA%3D\" rel=\"noopener noreferrer\">JWT<\/a>\uff0c\u5e76\u5c06\u5176\u653e\u5165HTTP\u8bf7\u6c42\u7684\u6388\u6743\u4fe1\u606f\u4e2d\u3002<\/li>\n<li>\u5728MySQL\u4e2d\u521b\u5efa\u4e00\u4e2ausers\u8868\uff0c\u8868\u7ed3\u6784\u5982\u4e0b\uff1a<\/li>\n<\/ul>\n<pre><code class=\"bash\">mysql&gt; desc users;\n+--------+--------------+------+-----+---------+-------+\n| Field  | Type         | Null | Key | Default | Extra |\n+--------+--------------+------+-----+---------+-------+\n| email  | varchar(255) | NO   | PRI | NULL    |       |\n| first  | varchar(255) | YES  |     | NULL    |       |\n| last   | varchar(255) | YES  |     | NULL    |       |\n| city   | varchar(255) | YES  |     | NULL    |       |\n| county | varchar(255) | YES  |     | NULL    |       |\n| age    | int          | YES  |     | NULL    |       |\n+--------+--------------+------+-----+---------+-------+\n6 rows in set (0.00 sec)<\/code><\/pre>\n<ul>\n<li>\u4e3ausers\u8868\u51c6\u5907100000\u6761\u7528\u6237\u6570\u636e<\/li>\n<\/ul>\n<h2>\u6d4b\u8bd5\u4ee3\u7801<\/h2>\n<h3>\u5e26\u865a\u62df\u7ebf\u7a0b\u7684Spring Boot\u7a0b\u5e8f<\/h3>\n<p><code>application.properties<\/code>\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"properties\">server.port=3000\n\nspring.datasource.url= jdbc:mysql:\/\/localhost:3306\/testdb?useSSL=false\nspring.datasource.username= testuser\nspring.datasource.password= testpwd\nspring.jpa.hibernate.ddl-auto= update\nspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver<\/code><\/pre>\n<p><code>User<\/code>\u5b9e\u4f53\u7c7b\uff08\u4e3a\u4e86\u8ba9\u6587\u7ae0\u8ba9\u7b80\u6d01\u4e00\u4e9b\uff0c\u8fd9\u91cc<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=XFjvZe6KRDxIE%2BVGXhFr2w%3D%3D.CVIxFnxYwOndfjgdoAIDl1jpfqpSLQqUHcqKfP5UR%2B8a4oNzmmFF9aM7c9io5NzSzJsFCaoK57KEGqlfKTrx3hXzgvwjxyTa471RveSp64kRd5bevq%2Frn9rGEwMo%2F9cZ\" rel=\"noopener noreferrer\">DD<\/a>\u7701\u7565\u4e86getter\u548csetter\uff09\uff1a<\/p>\n<pre><code class=\"java\">@Entity\n@Table(name = &quot;users&quot;)\npublic class User {\n  @Id\n  private String email;\n\n  private String first;\n\n  private String last;\n\n  private String city;\n\n  private String county;\n\n  private int age;\n\n}<\/code><\/pre>\n<p>\u5e94\u7528\u4e3b\u7c7b\uff1a<\/p>\n<pre><code class=\"java\">@SpringBootApplication\npublic class UserApplication {\n\n    public static void main(String[] args) {\n        SpringApplication.run(UserApplication.class, args);\n    }\n\n    @Bean\n    public TomcatProtocolHandlerCustomizer&lt;?&gt; protocolHandlerVirtualThreadExecutorCustomizer() {\n        return protocolHandler -&gt; {\n            protocolHandler.setExecutor(Executors.newVirtualThreadPerTaskExecutor());\n        };\n    }\n}<\/code><\/pre>\n<p>\u63d0\u4f9bCRUD\u64cd\u4f5c\u7684<code>UserRepository<\/code>\uff1a<\/p>\n<pre><code class=\"java\">import org.springframework.data.repository.CrudRepository;\nimport com.example.demo.User;\n\npublic interface UserRepository extends CrudRepository&lt;User, String&gt; {\n\n}<\/code><\/pre>\n<p>\u63d0\u4f9bAPI\u63a5\u53e3\u7684<code>UserController<\/code>\u7c7b\uff1a<\/p>\n<pre><code class=\"java\">@RestController\npublic class UserController {\n\n    @Autowired\n    UserRepository userRepository;\n\n    private SignatureAlgorithm sa = SignatureAlgorithm.HS256;\n    private String jwtSecret = System.getenv(&quot;JWT_SECRET&quot;);\n\n    @GetMapping(&quot;\/&quot;)\n    public User handleRequest(@RequestHeader(HttpHeaders.AUTHORIZATION) String authHdr) {\n        String jwtString = authHdr.replace(&quot;Bearer&quot;,&quot;&quot;);\n        Claims claims = Jwts.parser()\n            .setSigningKey(jwtSecret.getBytes())\n            .parseClaimsJws(jwtString).getBody();\n\n        Optional&lt;User&gt; user = userRepository.findById((String)claims.get(&quot;email&quot;));\n        return user.get();\n    }\n}<\/code><\/pre>\n<h3>Spring Boot Webflux\u7a0b\u5e8f<\/h3>\n<p><code>application.properties<\/code>\u914d\u7f6e\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"properties\">server.port=3000\n\nspring.r2dbc.url=r2dbc:mysql:\/\/localhost:3306\/testdb\nspring.r2dbc.username=dbser\nspring.r2dbc.password=dbpwd<\/code><\/pre>\n<p><code>User<\/code>\u5b9e\u4f53\uff08\u8fd9\u91cc<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=Guxif%2BUmvEI6O28HDquk3Q%3D%3D.lxY48FCGrCN3bF7GSUC13vbnBOuZ78mVuhnsXGCilLqYbfDf9MPIZPTD0NKDmYpNkUTSmUch%2B4S871iY7IMcGd0MvF2ZjqZgOKrvQT%2BvFfTTswamY%2Brs4Ml9bMEbG%2BPq\" rel=\"noopener noreferrer\">DD<\/a>\u4e5f\u7701\u7565\u4e86\u6784\u9020\u51fd\u6570\u3001getter\u548csetter\uff09\uff1a<\/p>\n<pre><code class=\"java\">public class User {\n\n  @Id\n  private String email;\n\n  private String first;\n\n  private String last;\n\n  private String city;\n\n  private String county;\n\n  private int age;\n\n  \/\/ \u7701\u7565\u4e86\u6784\u9020\u51fd\u6570\u3001getter\u3001setter\n  \n}<\/code><\/pre>\n<p>\u5e94\u7528\u4e3b\u7c7b\uff1a<\/p>\n<pre><code class=\"java\">@EnableWebFlux\n@SpringBootApplication\npublic class UserApplication {\n\n  public static void main(String[] args) {\n    SpringApplication.run(UserApplication.class, args);\n  }\n\n}<\/code><\/pre>\n<p>\u63d0\u4f9bCRUD\u64cd\u4f5c\u7684<code>UserRepository<\/code>\uff1a<\/p>\n<pre><code class=\"java\">public interface UserRepository extends R2dbcRepository&lt;User, String&gt; {\n\n}<\/code><\/pre>\n<p>\u63d0\u4f9b\u6839\u636eid\u67e5\u7528\u6237\u7684\u4e1a\u52a1\u7c7b<code>UserService<\/code>\uff1a<\/p>\n<pre><code class=\"java\">@Service\npublic class UserService {\n\n  @Autowired\n  UserRepository userRepository;\n\n  public Mono&lt;User&gt; findById(String id) {\n    return userRepository.findById(id);\n  }\n}<\/code><\/pre>\n<p>\u63d0\u4f9bAPI\u63a5\u53e3\u7684<code>UserController<\/code>\u7c7b\uff1a<\/p>\n<pre><code class=\"java\">@RestController\n@RequestMapping(&quot;\/&quot;)\npublic class UserController {\n\n  @Autowired\n  UserService userService;\n\n  private SignatureAlgorithm sa = SignatureAlgorithm.HS256;\n  private String jwtSecret = System.getenv(&quot;JWT_SECRET&quot;);\n\n  @GetMapping(&quot;\/&quot;)\n  @ResponseStatus(HttpStatus.OK)\n  public Mono&lt;User&gt; getUserById(@RequestHeader(HttpHeaders.AUTHORIZATION) String authHdr) {\n    String jwtString = authHdr.replace(&quot;Bearer&quot;,&quot;&quot;);\n    Claims claims = Jwts.parser()\n        .setSigningKey(jwtSecret.getBytes())\n        .parseClaimsJws(jwtString).getBody();\n    return userService.findById((String)claims.get(&quot;email&quot;));\n  }\n\n}<\/code><\/pre>\n<h2>\u6d4b\u8bd5\u7ed3\u679c<\/h2>\n<p>\u63a5\u4e0b\u6765\u662f\u91cd\u5934\u620f\u4e86\uff0c\u4f5c\u8005\u5bf9\u4e24\u4e2a\u6280\u672f\u65b9\u6848\u90fd\u505a\u4e86500w\u4e2a\u8bf7\u6c42\u7684\u6d4b\u8bd5\uff0c\u8bc4\u4f30\u7684\u4e0d\u540c\u5e76\u53d1\u8fde\u63a5\u7ea7\u522b\u5305\u542b\uff1a50\u3001100\u3001300\u3002<\/p>\n<p>\u5177\u4f53\u7ed3\u679c\u5982\u4e0b\u4e09\u5f20\u56fe\uff1a<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"807\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9LtM\" alt=\"50\u5e76\u53d1\u8fde\u63a5\" title=\"50\u5e76\u53d1\u8fde\u63a5\"><\/p>\n<p><img decoding=\"async\" width=\"720\" height=\"807\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9LtN\" alt=\"100\u5e76\u53d1\u8fde\u63a5\" title=\"100\u5e76\u53d1\u8fde\u63a5\" loading=\"lazy\"><\/p>\n<p><img decoding=\"async\" width=\"720\" height=\"807\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9LtO\" alt=\"300\u5e76\u53d1\u8fde\u63a5\" title=\"300\u5e76\u53d1\u8fde\u63a5\" loading=\"lazy\"><\/p>\n<p>\u6700\u540e\uff0c\u4f5c\u8005\u5f97\u51fa\u7ed3\u8bba\uff1aSpring Boot Webflux\u8981\u66f4\u4f18\u4e8e\u5e26\u865a\u62df\u7ebf\u7a0b\u7684Spring Boot\u3002<\/p>\n<p><img decoding=\"async\" width=\"640\" height=\"290\" referrerpolicy=\"no-referrer\" src=\"https:\/\/segmentfault.com\/img\/bVc9LtP\" alt=\"\" title=\"\" loading=\"lazy\"><\/p>\n<p>\u4f3c\u4e4e\u5f15\u5165\u4e86\u865a\u62df\u7ebf\u7a0b\u8fd8\u4e0d\u5982\u5df2\u7ecf\u5728\u7528\u7684Webflux\uff1f\u4e0d\u77e5\u9053\u5927\u5bb6\u662f\u5426\u6709\u505a\u8fc7\u76f8\u5173\u8c03\u7814\u5462\uff1f\u5982\u679c\u6709\u7684\u8bdd\uff0c\u6b22\u8fce\u5728\u7559\u8a00\u533a\u4e00\u8d77\u804a\u804a\uff5e<\/p>\n<p>\u5982\u679c\u60a8\u5b66\u4e60\u8fc7\u7a0b\u4e2d\u5982\u9047\u56f0\u96be\uff1f\u53ef\u4ee5\u52a0\u5165\u6211\u4eec\u8d85\u9ad8\u8d28\u91cf\u7684<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=0t9oZmVU%2FVl12lRSdCOTOA%3D%3D.XJR32ozNER3x6tev42bToJgrHyBv1Me0OKA1kVPx4psb26b8fwsmZmatlb%2BTckyrf9jYm8vOmXYYogucELAzzg%3D%3D\" rel=\"noopener noreferrer\">Spring\u6280\u672f\u4ea4\u6d41\u7fa4<\/a>\uff0c\u53c2\u4e0e\u4ea4\u6d41\u4e0e\u8ba8\u8bba\uff0c\u66f4\u597d\u7684\u5b66\u4e60\u4e0e\u8fdb\u6b65\uff01\u66f4\u591a<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=KcJ5WBMtQPt4K17%2BwDgOQQ%3D%3D.RPO2PEpeuChrP%2Baw3FHHLG4of8kjN1tvb3P%2BwIY5jfUBBqNjLmMZugZOTwFFA%2FeC\" rel=\"noopener noreferrer\">Spring Boot\u6559\u7a0b\u53ef\u4ee5\u70b9\u51fb\u76f4\u8fbe\uff01<\/a>\uff0c\u6b22\u8fce\u6536\u85cf\u4e0e\u8f6c\u53d1\u652f\u6301\uff01\u5982\u679c\u60a8\u5bf9\u8fd9\u7bc7\u5185\u5bb9\u7684\u539f\u6587\u611f\u5174\u8da3\u7684\u8bdd\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb<a target=\"_blank\" href=\"https:\/\/link.segmentfault.com\/?enc=B4bLHZZkHzSpHuxcQPPisg%3D%3D.jzY3zwgH0Eso55wdjOBkgPHrX9Rs89U%2B6ctDfx3CtfNhefKglxo8%2Bf5t2UE%2BGu7bGNlGzMxU4iYfWQwnTvYT7adURW2glJ4H5V%2B1LNRp4xdjNgNww7%2FMoNykfUACgUtkWyY6SfX4HPXaA9qgP4EAEecF7glVF4YqLQHQXZtA%2Bp6x40%2FHmib5a72WzdhLTN1xGqrdTGeR2U3PYKe7riEB3Q%3D%3D\" rel=\"noopener noreferrer\">\u8fd9\u91cc\u67e5\u770b<\/a>\u3002<\/p>\n<blockquote><p>\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u516c\u4f17\u53f7\uff1a\u7a0b\u5e8f\u733fDD\u3002\u7b2c\u4e00\u65f6\u95f4\u4e86\u89e3\u524d\u6cbf\u884c\u4e1a\u6d88\u606f\u3001\u5206\u4eab\u6df1\u5ea6\u6280\u672f\u5e72\u8d27\u3001\u83b7\u53d6\u4f18\u8d28\u5b66\u4e60\u8d44\u6e90<\/p><\/blockquote>\n<p><a href=\"https:\/\/segmentfault.com\/a\/1190000044235130\">https:\/\/segmentfault.com\/a\/1190000044235130<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e9\u4e0a\u770b\u5230\u4e00\u7bc7\u5173\u4e8eSpring Boot\u865a\u62df\u7ebf\u7a0b\u548cWebflux\u6027\u80fd\u5bf9\u6bd4\u7684\u6587\u7ae0\uff0c\u89c9\u5f97\u8fd8\u4e0d\u9519\u3002\u5185\u5bb9\u8f83\u957f\uff0c\u6211\u5c31\u4e0d\u7ffb\u8bd1 [&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-10008299","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\/10008299","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=10008299"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10008299\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10008299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10008299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10008299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}