{"id":270,"date":"2026-09-30T10:58:19","date_gmt":"2026-09-30T02:58:19","guid":{"rendered":"https:\/\/yykcj.com\/?p=270"},"modified":"2026-09-30T10:58:19","modified_gmt":"2026-09-30T02:58:19","slug":"%e6%95%b0%e6%8d%ae%e5%ba%93%e5%88%86%e5%ba%93%e5%88%86%e8%a1%a8%e8%ae%be%e8%ae%a1%e4%b8%8e%e5%ae%9e%e8%b7%b5%ef%bc%9a%e4%bb%8e%e7%90%86%e8%ae%ba%e5%88%b0shardingsphere%e8%90%bd%e5%9c%b0","status":"publish","type":"post","link":"https:\/\/yykcj.com\/?p=270","title":{"rendered":"\u6570\u636e\u5e93\u5206\u5e93\u5206\u8868\u8bbe\u8ba1\u4e0e\u5b9e\u8df5\uff1a\u4ece\u7406\u8bba\u5230ShardingSphere\u843d\u5730"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u9700\u8981\u5206\u5e93\u5206\u8868\uff1f<\/h2>\n<p>\u5f53\u5355\u8868\u6570\u636e\u91cf\u8d85\u8fc7\u5343\u4e07\u7ea7\uff0c\u6570\u636e\u5e93\u7684\u5199\u5165\u548c\u67e5\u8be2\u6027\u80fd\u4f1a\u6025\u5267\u4e0b\u964d\u3002\u7d22\u5f15\u81a8\u80c0\u3001DDL \u963b\u585e\u3001\u5355\u673a\u5bb9\u91cf\u74f6\u9888\u7b49\u95ee\u9898\u63a5\u8e35\u800c\u81f3\u3002\u5206\u5e93\u5206\u8868\u662f\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u94f6\u5f39\u4e4b\u4e00\uff0c\u4f46\u8bbe\u8ba1\u4e0d\u5f53\u53cd\u800c\u4f1a\u5f15\u5165\u66f4\u591a\u590d\u6742\u6027\u3002<\/p>\n<p>\u672c\u6587\u5c06\u4ece\u4e1a\u52a1\u573a\u666f\u51fa\u53d1\uff0c\u5e26\u4f60\u4e00\u6b65\u6b65\u8bbe\u8ba1\u5206\u5e93\u5206\u8868\u65b9\u6848\uff0c\u5e76\u4f7f\u7528 Apache ShardingSphere \u5b9e\u73b0\u4e00\u4e2a\u53ef\u8fd0\u884c\u7684\u6c34\u5e73\u62c6\u5206\u793a\u4f8b\u3002<\/p>\n<h2>\u4e00\u3001\u5206\u5e93\u5206\u8868\u7684\u6838\u5fc3\u6982\u5ff5<\/h2>\n<h3>1.1 \u5782\u76f4\u62c6\u5206 vs \u6c34\u5e73\u62c6\u5206<\/h3>\n<ul>\n<li><strong>\u5782\u76f4\u5206\u5e93<\/strong>\uff1a\u6309\u4e1a\u52a1\u62c6\u5206\uff0c\u5982\u7528\u6237\u5e93\u3001\u8ba2\u5355\u5e93\u3001\u5546\u54c1\u5e93\u3002\u964d\u4f4e\u5355\u5e93\u538b\u529b\uff0c\u4f46\u65e0\u6cd5\u89e3\u51b3\u5355\u8868\u6570\u636e\u91cf\u8fc7\u5927\u95ee\u9898\u3002<\/li>\n<li><strong>\u5782\u76f4\u5206\u8868<\/strong>\uff1a\u5c06\u4e0d\u5e38\u7528\u5b57\u6bb5\u6216\u5927\u5b57\u6bb5\u62c6\u5206\u5230\u6269\u5c55\u8868\uff0c\u5982 <code>user<\/code> \u548c <code>user_profile<\/code>\u3002<\/li>\n<li><strong>\u6c34\u5e73\u5206\u5e93<\/strong>\uff1a\u540c\u4e00\u5f20\u8868\u7684\u6570\u636e\u6309\u89c4\u5219\u5206\u6563\u5230\u591a\u4e2a\u5e93\u3002<\/li>\n<li><strong>\u6c34\u5e73\u5206\u8868<\/strong>\uff1a\u540c\u4e00\u5f20\u8868\u7684\u6570\u636e\u6309\u89c4\u5219\u5206\u6563\u5230\u591a\u4e2a\u8868\u3002<\/li>\n<\/ul>\n<p>\u901a\u5e38\u7ec4\u5408\u4f7f\u7528\uff1a\u5148\u5782\u76f4\u62c6\u5206\uff0c\u518d\u6c34\u5e73\u62c6\u5206\u3002<\/p>\n<h3>1.2 \u5206\u7247\u952e\uff08Sharding Key\uff09\u7684\u9009\u62e9<\/h3>\n<p>\u5206\u7247\u952e\u51b3\u5b9a\u4e86\u6570\u636e\u5206\u5e03\u548c\u67e5\u8be2\u8def\u7531\u3002<strong>\u6700\u4f73\u5b9e\u8df5<\/strong>\uff1a<\/p>\n<ul>\n<li>\u9009\u62e9<strong>\u9ad8\u9891\u67e5\u8be2\u6761\u4ef6<\/strong>\u4f5c\u4e3a\u5206\u7247\u952e\uff0c\u5982 <code>user<em>id<\/code>\u3001<code>order<\/em>id<\/code>\u3002<\/li>\n<li>\u907f\u514d\u4f7f\u7528<strong>\u65f6\u95f4\u6233<\/strong>\u4f5c\u4e3a\u552f\u4e00\u5206\u7247\u952e\uff0c\u5bb9\u6613\u5bfc\u81f4\u70ed\u70b9\uff08\u65b0\u6570\u636e\u96c6\u4e2d\u5728\u4e00\u4e2a\u5206\u7247\uff09\u3002<\/li>\n<li>\u5c3d\u91cf\u4fdd\u8bc1<strong>\u6570\u636e\u5747\u5300\u5206\u5e03<\/strong>\uff0c\u5982\u4f7f\u7528 <code>user<em>id % 4<\/code> \u6216 <code>hash(user<\/em>id) % 4<\/code>\u3002<\/li>\n<\/ul>\n<p>\ud83d\udca1 <strong>\u6ce8\u610f<\/strong>\uff1a\u5982\u679c\u67e5\u8be2\u6761\u4ef6\u4e0d\u5e26\u5206\u7247\u952e\uff0c\u5c06\u89e6\u53d1\u5168\u8def\u7531\uff08\u626b\u63cf\u6240\u6709\u5206\u7247\uff09\uff0c\u6027\u80fd\u6781\u5dee\u3002<\/p>\n<h2>\u4e8c\u3001\u5206\u7247\u7b97\u6cd5\u4e0e\u8def\u7531<\/h2>\n<h3>2.1 \u5e38\u89c1\u5206\u7247\u7b97\u6cd5<\/h3>\n<ul>\n<li><strong>\u53d6\u6a21<\/strong>\uff1a<code>user_id % 4<\/code>\uff0c\u7b80\u5355\u4f46\u6269\u5bb9\u56f0\u96be\u3002<\/li>\n<li><strong>\u8303\u56f4<\/strong>\uff1a\u6309 ID \u533a\u95f4\u6216\u65f6\u95f4\u8303\u56f4\uff0c\u6613\u6269\u5bb9\u4f46\u53ef\u80fd\u70ed\u70b9\u3002<\/li>\n<li><strong>\u4e00\u81f4\u6027\u54c8\u5e0c<\/strong>\uff1a\u6269\u5bb9\u65f6\u5f71\u54cd\u5c0f\uff0c\u4f46\u5b9e\u73b0\u590d\u6742\u3002<\/li>\n<li><strong>\u96ea\u82b1\u7b97\u6cd5 + \u53d6\u6a21<\/strong>\uff1a\u4fdd\u8bc1 ID \u5168\u5c40\u552f\u4e00\u4e14\u5747\u5300\u3002<\/li>\n<\/ul>\n<h3>2.2 \u8def\u7531\u7c7b\u578b<\/h3>\n<ul>\n<li><strong>\u76f4\u63a5\u8def\u7531<\/strong>\uff1a\u5206\u7247\u952e\u80fd\u76f4\u63a5\u5b9a\u4f4d\u3002<\/li>\n<li><strong>\u6807\u51c6\u8def\u7531<\/strong>\uff1a\u6700\u5e38\u89c1\uff0c<code>=<\/code> \u548c <code>IN<\/code> \u67e5\u8be2\u3002<\/li>\n<li><strong>\u7b1b\u5361\u5c14\u8def\u7531<\/strong>\uff1a\u591a\u5206\u7247\u952e\u5173\u8054\u67e5\u8be2\uff0c\u6027\u80fd\u5dee\uff0c\u5c3d\u91cf\u907f\u514d\u3002<\/li>\n<\/ul>\n<h2>\u4e09\u3001\u5b9e\u6218\uff1aSpring Boot + ShardingSphere \u6c34\u5e73\u5206\u8868<\/h2>\n<p>\u6211\u4eec\u6a21\u62df\u8ba2\u5355\u8868 <code>t<em>order<\/code>\uff0c\u6309 <code>user<\/em>id<\/code> \u5206 2 \u4e2a\u5e93\uff0c\u6bcf\u4e2a\u5e93\u5206 2 \u5f20\u8868\uff0c\u5171 4 \u4e2a\u5206\u7247\u3002<\/p>\n<h3>3.1 \u73af\u5883\u51c6\u5907<\/h3>\n<ul>\n<li>JDK 1.8+<\/li>\n<li>MySQL 5.7+\uff08\u4e24\u4e2a\u5e93\uff1a<code>db0<\/code>\u3001<code>db1<\/code>\uff09<\/li>\n<li>Spring Boot 2.7.x<\/li>\n<li>ShardingSphere-JDBC 5.3.0<\/li>\n<\/ul>\n<p>\u5efa\u8868 SQL\uff08\u5728\u6bcf\u4e2a\u5e93\u4e2d\u6267\u884c\uff09\uff1a<\/p>\n<pre><code class=\"language-sql\">\nCREATE TABLE t_order_0 (\n  order_id BIGINT NOT NULL,\n  user_id BIGINT NOT NULL,\n  order_no VARCHAR(64),\n  amount DECIMAL(10,2),\n  create_time DATETIME,\n  PRIMARY KEY (order_id)\n);\n\nCREATE TABLE t_order_1 (\n  order_id BIGINT NOT NULL,\n  user_id BIGINT NOT NULL,\n  order_no VARCHAR(64),\n  amount DECIMAL(10,2),\n  create_time DATETIME,\n  PRIMARY KEY (order_id)\n);\n<\/code><\/pre>\n<h3>3.2 \u6dfb\u52a0\u4f9d\u8d56<\/h3>\n<pre><code class=\"language-xml\">\n&lt;dependency&gt;\n    &lt;groupId&gt;org.apache.shardingsphere&lt;\/groupId&gt;\n    &lt;artifactId&gt;shardingsphere-jdbc-core-spring-boot-starter&lt;\/artifactId&gt;\n    &lt;version&gt;5.3.0&lt;\/version&gt;\n&lt;\/dependency&gt;\n&lt;dependency&gt;\n    &lt;groupId&gt;mysql&lt;\/groupId&gt;\n    &lt;artifactId&gt;mysql-connector-java&lt;\/artifactId&gt;\n    &lt;version&gt;8.0.33&lt;\/version&gt;\n&lt;\/dependency&gt;\n<\/code><\/pre>\n<h3>3.3 \u914d\u7f6e\u5206\u7247\u89c4\u5219<\/h3>\n<p><code>application.yml<\/code>\uff1a<\/p>\n<pre><code class=\"language-yaml\">\nspring:\n  shardingsphere:\n    datasource:\n      names: db0, db1\n      db0:\n        type: com.zaxxer.hikari.HikariDataSource\n        driver-class-name: com.mysql.cj.jdbc.Driver\n        jdbc-url: jdbc:mysql:\/\/localhost:3306\/db0?useSSL=false\n        username: root\n        password: 123456\n      db1:\n        type: com.zaxxer.hikari.HikariDataSource\n        driver-class-name: com.mysql.cj.jdbc.Driver\n        jdbc-url: jdbc:mysql:\/\/localhost:3306\/db1?useSSL=false\n        username: root\n        password: 123456\n    rules:\n      sharding:\n        tables:\n          t_order:\n            actual-data-nodes: db${0..1}.t_order_${0..1}\n            database-strategy:\n              standard:\n                sharding-column: user_id\n                sharding-algorithm-name: db-inline\n            table-strategy:\n              standard:\n                sharding-column: user_id\n                sharding-algorithm-name: table-inline\n        sharding-algorithms:\n          db-inline:\n            type: INLINE\n            props:\n              algorithm-expression: db${user_id % 2}\n          table-inline:\n            type: INLINE\n            props:\n              algorithm-expression: t_order_${user_id % 2}\n    props:\n      sql-show: true\n<\/code><\/pre>\n<h3>3.4 \u7f16\u5199\u5b9e\u4f53\u4e0e Mapper<\/h3>\n<pre><code class=\"language-java\">\n@Data\n@TableName(&quot;t_order&quot;)\npublic class Order {\n    private Long orderId;\n    private Long userId;\n    private String orderNo;\n    private BigDecimal amount;\n    private LocalDateTime createTime;\n}\n<\/code><\/pre>\n<pre><code class=\"language-java\">\n@Mapper\npublic interface OrderMapper extends BaseMapper&lt;Order&gt; {\n}\n<\/code><\/pre>\n<h3>3.5 \u6d4b\u8bd5\u63d2\u5165\u4e0e\u67e5\u8be2<\/h3>\n<pre><code class=\"language-java\">\n@SpringBootTest\nclass OrderTest {\n    @Autowired\n    private OrderMapper orderMapper;\n\n    @Test\n    void testInsert() {\n        for (long userId = 1; userId &lt;= 4; userId++) {\n            Order order = new Order();\n            order.setOrderId(userId * 1000);\n            order.setUserId(userId);\n            order.setOrderNo(&quot;NO&quot; + userId);\n            order.setAmount(new BigDecimal(&quot;99.9&quot;));\n            order.setCreateTime(LocalDateTime.now());\n            orderMapper.insert(order);\n        }\n    }\n\n    @Test\n    void testSelect() {\n        \/\/ \u5e26\u5206\u7247\u952e\uff0c\u8def\u7531\u5230\u5177\u4f53\u5206\u7247\n        Order order = orderMapper.selectById(1000L);\n        System.out.println(order);\n\n        \/\/ \u4e0d\u5e26\u5206\u7247\u952e\uff0c\u5168\u8def\u7531\uff08\u614e\u7528\uff09\n        List&lt;Order&gt; list = orderMapper.selectList(null);\n        System.out.println(list.size());\n    }\n}\n<\/code><\/pre>\n<p>\u6267\u884c\u540e\uff0c\u89c2\u5bdf\u65e5\u5fd7\u53ef\u4ee5\u770b\u5230 SQL \u88ab\u8def\u7531\u5230 <code>db0.t<em>order<\/em>0<\/code> \u7b49\u5177\u4f53\u5206\u7247\u3002<\/p>\n<p>\ud83d\udca1 <strong>\u6ce8\u610f<\/strong>\uff1a<code>selectById<\/code> \u4f7f\u7528 <code>order<em>id<\/code> \u4f5c\u4e3a\u4e3b\u952e\uff0c\u4f46\u5206\u7247\u952e\u662f <code>user<\/em>id<\/code>\uff0c\u56e0\u6b64\u4f1a\u5168\u8def\u7531\u3002\u751f\u4ea7\u73af\u5883\u5e94\u907f\u514d\u8fd9\u79cd\u67e5\u8be2\uff0c\u6216\u5efa\u7acb <code>order<em>id<\/code> \u4e0e <code>user<\/em>id<\/code> \u7684\u6620\u5c04\u5173\u7cfb\u3002<\/p>\n<h2>\u56db\u3001\u5206\u5e03\u5f0f\u4e3b\u952e\u751f\u6210<\/h2>\n<p>\u5206\u5e93\u5206\u8868\u540e\uff0c\u81ea\u589e\u4e3b\u952e\u4e0d\u518d\u5168\u5c40\u552f\u4e00\u3002\u63a8\u8350\u4f7f\u7528<strong>\u96ea\u82b1\u7b97\u6cd5<\/strong>\uff08Snowflake\uff09\u3002ShardingSphere \u5185\u7f6e\u4e86 <code>SNOWFLAKE<\/code> \u7b97\u6cd5\uff1a<\/p>\n<pre><code class=\"language-yaml\">\nspring:\n  shardingsphere:\n    rules:\n      sharding:\n        tables:\n          t_order:\n            key-generator:\n              column: order_id\n              type: SNOWFLAKE\n<\/code><\/pre>\n<p>\u8fd9\u6837\u63d2\u5165\u65f6\u65e0\u9700\u624b\u52a8\u8bbe\u7f6e <code>order_id<\/code>\u3002<\/p>\n<h2>\u4e94\u3001\u5206\u5e03\u5f0f\u4e8b\u52a1\u4e0e\u6570\u636e\u4e00\u81f4\u6027<\/h2>\n<p>\u8de8\u5e93\u64cd\u4f5c\u9700\u8981\u5206\u5e03\u5f0f\u4e8b\u52a1\u3002ShardingSphere \u652f\u6301\uff1a<\/p>\n<ul>\n<li><strong>LOCAL<\/strong>\uff1a\u672c\u5730\u4e8b\u52a1\uff0c\u9002\u7528\u4e8e\u5355\u5e93\u3002<\/li>\n<li><strong>XA<\/strong>\uff1a\u5f3a\u4e00\u81f4\uff0c\u6027\u80fd\u8f83\u5dee\u3002<\/li>\n<li><strong>BASE<\/strong>\uff1a\u6700\u7ec8\u4e00\u81f4\uff0c\u57fa\u4e8e Seata\u3002<\/li>\n<\/ul>\n<p>\u63a8\u8350\u4f7f\u7528 <strong>Seata AT \u6a21\u5f0f<\/strong>\uff0c\u5bf9\u4e1a\u52a1\u65e0\u4fb5\u5165\u3002\u914d\u7f6e\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-yaml\">\nspring:\n  shardingsphere:\n    rules:\n      transaction:\n        default-type: BASE\n        provider-type: Seata\n<\/code><\/pre>\n<h2>\u516d\u3001\u5e38\u89c1\u5751\u4e0e\u6700\u4f73\u5b9e\u8df5<\/h2>\n<h3>6.1 \u907f\u514d\u8de8\u5206\u7247 JOIN<\/h3>\n<p>\u5206\u7247\u540e JOIN \u53ea\u80fd\u5728\u5185\u5b58\u4e2d\u5f52\u5e76\uff0c\u6027\u80fd\u6781\u5dee\u3002\u89e3\u51b3\u65b9\u6848\uff1a<\/p>\n<ul>\n<li>\u5197\u4f59\u5b57\u6bb5\uff08\u5982\u8ba2\u5355\u8868\u5197\u4f59\u7528\u6237\u540d\uff09\u3002<\/li>\n<li>\u5bbd\u8868\uff08ETL \u540c\u6b65\u5230 ES\uff09\u3002<\/li>\n<li>\u7ed1\u5b9a\u8868\uff08\u76f8\u540c\u5206\u7247\u89c4\u5219\u7684\u8868\uff0c\u5982 <code>t<em>order<\/code> \u548c <code>t<\/em>order<em>item<\/code> \u90fd\u6309 <code>order<\/em>id<\/code> \u5206\u7247\uff09\u3002<\/li>\n<\/ul>\n<h3>6.2 \u5206\u9875\u67e5\u8be2\u6027\u80fd<\/h3>\n<p><code>LIMIT 10000, 10<\/code> \u4f1a\u4ece\u6bcf\u4e2a\u5206\u7247\u53d6 10010 \u6761\u518d\u5f52\u5e76\uff0c\u6548\u7387\u4f4e\u3002\u4f18\u5316\uff1a<\/p>\n<ul>\n<li>\u4f7f\u7528<strong>\u4e8c\u6b21\u67e5\u8be2\u6cd5<\/strong>\uff1a\u5148\u67e5\u4e3b\u952e\uff0c\u518d\u56de\u8868\u3002<\/li>\n<li>\u9650\u5236\u6700\u5927\u9875\u6570\u3002<\/li>\n<\/ul>\n<h3>6.3 \u6269\u5bb9\u65b9\u6848<\/h3>\n<ul>\n<li><strong>\u505c\u673a\u6269\u5bb9<\/strong>\uff1a\u7b80\u5355\u4f46\u5f71\u54cd\u4e1a\u52a1\u3002<\/li>\n<li><strong>\u53cc\u5199\u8fc1\u79fb<\/strong>\uff1a\u65b0\u8001\u5e93\u53cc\u5199\uff0c\u9010\u6b65\u5207\u6d41\u3002<\/li>\n<li><strong>\u4e00\u81f4\u6027\u54c8\u5e0c<\/strong>\uff1a\u51cf\u5c11\u6570\u636e\u8fc1\u79fb\u91cf\u3002<\/li>\n<\/ul>\n<h3>6.4 \u5168\u5c40 ID \u4e0e\u5206\u7247\u952e\u51b2\u7a81<\/h3>\n<p>\u82e5\u4f7f\u7528 <code>order<em>id<\/code> \u4f5c\u4e3a\u5206\u7247\u952e\uff0c\u4f46\u67e5\u8be2\u5e38\u7528 <code>user<\/em>id<\/code>\uff0c\u53ef\u5efa\u7acb<strong>\u57fa\u56e0\u6cd5<\/strong>\uff1a\u5c06 <code>user<em>id<\/code> \u7684\u540e\u51e0\u4f4d\u5d4c\u5165 <code>order<\/em>id<\/code>\uff0c\u4f7f\u4e24\u8005\u90fd\u80fd\u8def\u7531\u5230\u540c\u4e00\u5206\u7247\u3002<\/p>\n<h2>\u4e03\u3001\u603b\u7ed3<\/h2>\n<p>\u5206\u5e93\u5206\u8868\u662f\u5e94\u5bf9\u6d77\u91cf\u6570\u636e\u7684\u6709\u6548\u624b\u6bb5\uff0c\u4f46\u7edd\u975e\u94f6\u5f39\u3002\u8bbe\u8ba1\u65f6\u9700\u91cd\u70b9\u8003\u8651\uff1a<\/p>\n<ol>\n<li><strong>\u5206\u7247\u952e\u9009\u62e9<\/strong>\uff1a\u9ad8\u9891\u3001\u5747\u5300\u3001\u907f\u514d\u70ed\u70b9\u3002<\/li>\n<li><strong>\u8def\u7531\u7b56\u7565<\/strong>\uff1a\u5c3d\u91cf\u5e26\u5206\u7247\u952e\u67e5\u8be2\u3002<\/li>\n<li><strong>\u5168\u5c40 ID<\/strong>\uff1a\u96ea\u82b1\u7b97\u6cd5\u6216\u53f7\u6bb5\u6a21\u5f0f\u3002<\/li>\n<li><strong>\u5206\u5e03\u5f0f\u4e8b\u52a1<\/strong>\uff1a\u6839\u636e\u4e00\u81f4\u6027\u8981\u6c42\u9009\u62e9\u65b9\u6848\u3002<\/li>\n<li><strong>\u6269\u5bb9\u4e0e\u8fd0\u7ef4<\/strong>\uff1a\u63d0\u524d\u89c4\u5212\uff0c\u907f\u514d\u540e\u671f\u8fc1\u79fb\u75db\u82e6\u3002<\/li>\n<\/ol>\n<p>\u4e0b\u4e00\u6b65\u53ef\u4ee5\u5b66\u4e60 ShardingSphere \u7684\u8bfb\u5199\u5206\u79bb\u3001\u6570\u636e\u52a0\u5bc6\u3001\u5f71\u5b50\u5e93\u7b49\u529f\u80fd\uff0c\u6784\u5efa\u66f4\u5b8c\u5584\u7684\u5206\u5e03\u5f0f\u6570\u636e\u5e93\u67b6\u6784\u3002<\/p>\n<p>&#8212;<\/p>\n<p><strong>\u5ef6\u4f38\u9605\u8bfb<\/strong>\uff1a<\/p>\n<ul>\n<li>Apache ShardingSphere \u5b98\u65b9\u6587\u6863<\/li>\n<li>\u300a\u6570\u636e\u5206\u7247\u4e0e\u8def\u7531\u300b\u2014\u2014 \u5206\u5e03\u5f0f\u6570\u636e\u5e93\u6838\u5fc3\u539f\u7406<\/li>\n<li>Seata \u5b98\u65b9\u6587\u6863\uff1aAT \u6a21\u5f0f\u8be6\u89e3<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u6df1\u5165\u8bb2\u89e3\u5206\u5e93\u5206\u8868\u7684\u6838\u5fc3\u8bbe\u8ba1\u601d\u8def\uff0c\u5e76\u901a\u8fc7ShardingSphere\u5b9e\u6218\u6f14\u793a\u6c34\u5e73\u62c6\u5206\u3001\u8bfb\u5199\u5206\u79bb\u4e0e\u5206\u5e03\u5f0f\u4e8b\u52a1\u3002\u5305\u542b\u5b8c\u6574\u4ee3\u7801\u548c\u8e29\u5751\u7ecf\u9a8c\uff0c\u52a9\u4f60\u5e94\u5bf9\u6d77\u91cf\u6570\u636e\u6311\u6218\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[243,250,242,66,124],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-3","category-4","tag-shardingsphere","tag-250","tag-242","tag-66","tag-124"],"_links":{"self":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=270"}],"version-history":[{"count":0,"href":"https:\/\/yykcj.com\/index.php?rest_route=\/wp\/v2\/posts\/270\/revisions"}],"wp:attachment":[{"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yykcj.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}