{"id":397,"date":"2020-12-05T18:18:36","date_gmt":"2020-12-05T10:18:36","guid":{"rendered":"http:\/\/moyisuiying.com\/?p=397"},"modified":"2020-12-10T14:23:35","modified_gmt":"2020-12-10T06:23:35","slug":"mybatis-plus%e5%ad%a6%e4%b9%a0%ef%bc%88%e4%b8%80%ef%bc%89-springboot%e6%95%b4%e5%90%88mybatiplus","status":"publish","type":"post","link":"http:\/\/moyisuiying.com\/index.php\/mybatis\/397.html","title":{"rendered":"Mybatis-plus\u5b66\u4e60\uff08\u4e00\uff09\u2014\u2014Springboot\u6574\u5408MybatiPlus"},"content":{"rendered":"\n<h2>1.\u521d\u6b65\u8ba4\u8bc6<\/h2>\n\n\n\n<h3>1.1\u7b80\u4ecb<\/h3>\n\n\n\n<p>Mybatis-Plus\uff08\u7b80\u79f0MP\uff09\u662f\u4e00\u4e2a Mybatis \u7684\u589e\u5f3a\u5de5\u5177\uff0c\u5728 Mybatis \u7684\u57fa\u7840\u4e0a\u53ea\u505a\u589e\u5f3a\u4e0d\u505a\u6539\u53d8\uff0c\u4e3a\u7b80\u5316\u5f00\u53d1\u3001\u63d0\u9ad8\u6548\u7387\u800c\u751f\u3002\u8fd9\u662f\u5b98\u65b9\u7ed9\u7684\u5b9a\u4e49\uff0c\u5173\u4e8emybatis-plus\u7684\u66f4\u591a\u4ecb\u7ecd\u53ca\u7279\u6027\uff0c\u53ef\u4ee5\u53c2\u8003<a href=\"https:\/\/links.jianshu.com\/go?to=http%3A%2F%2Fmp.baomidou.com%2F%23%2F\" target=\"_blank\"  rel=\"nofollow\" >mybatis-plus\u5b98\u7f51<\/a>\u3002\u90a3\u4e48\u5b83\u662f\u600e\u4e48\u589e\u5f3a\u7684\u5462\uff1f\u5176\u5b9e\u5c31\u662f\u5b83\u5df2\u7ecf\u5c01\u88c5\u597d\u4e86\u4e00\u4e9bcrud\u65b9\u6cd5\uff0c\u6211\u4eec\u4e0d\u9700\u8981\u518d\u5199xml\u4e86\uff0c\u76f4\u63a5\u8c03\u7528\u8fd9\u4e9b\u65b9\u6cd5\u5c31\u884c\uff0c\u5c31\u7c7b\u4f3c\u4e8eJPA\u3002<\/p>\n\n\n\n<h3>1.2.\u7279\u6027<\/h3>\n\n\n\n<ul><li><strong>\u65e0\u4fb5\u5165<\/strong>\uff1a\u53ea\u505a\u589e\u5f3a\u4e0d\u505a\u6539\u53d8\uff0c\u5f15\u5165\u5b83\u4e0d\u4f1a\u5bf9\u73b0\u6709\u5de5\u7a0b\u4ea7\u751f\u5f71\u54cd\uff0c\u5982\u4e1d\u822c\u987a\u6ed1<\/li><li><strong>\u635f\u8017\u5c0f<\/strong>\uff1a\u542f\u52a8\u5373\u4f1a\u81ea\u52a8\u6ce8\u5165\u57fa\u672c CURD\uff0c\u6027\u80fd\u57fa\u672c\u65e0\u635f\u8017\uff0c\u76f4\u63a5\u9762\u5411\u5bf9\u8c61\u64cd\u4f5c<\/li><li><strong>\u5f3a\u5927\u7684 CRUD \u64cd\u4f5c<\/strong>\uff1a\u5185\u7f6e\u901a\u7528 Mapper\u3001\u901a\u7528 Service\uff0c\u4ec5\u4ec5\u901a\u8fc7\u5c11\u91cf\u914d\u7f6e\u5373\u53ef\u5b9e\u73b0\u5355\u8868\u5927\u90e8\u5206 CRUD \u64cd\u4f5c\uff0c\u66f4\u6709\u5f3a\u5927\u7684\u6761\u4ef6\u6784\u9020\u5668\uff0c\u6ee1\u8db3\u5404\u7c7b\u4f7f\u7528\u9700\u6c42<\/li><li><strong>\u652f\u6301 Lambda \u5f62\u5f0f\u8c03\u7528<\/strong>\uff1a\u901a\u8fc7 Lambda \u8868\u8fbe\u5f0f\uff0c\u65b9\u4fbf\u7684\u7f16\u5199\u5404\u7c7b\u67e5\u8be2\u6761\u4ef6\uff0c\u65e0\u9700\u518d\u62c5\u5fc3\u5b57\u6bb5\u5199\u9519<\/li><li><strong>\u652f\u6301\u4e3b\u952e\u81ea\u52a8\u751f\u6210<\/strong>\uff1a\u652f\u6301\u591a\u8fbe 4 \u79cd\u4e3b\u952e\u7b56\u7565\uff08\u5185\u542b\u5206\u5e03\u5f0f\u552f\u4e00 ID \u751f\u6210\u5668 - Sequence\uff09\uff0c\u53ef\u81ea\u7531\u914d\u7f6e\uff0c\u5b8c\u7f8e\u89e3\u51b3\u4e3b\u952e\u95ee\u9898<\/li><li><strong>\u652f\u6301 ActiveRecord \u6a21\u5f0f<\/strong>\uff1a\u652f\u6301 ActiveRecord \u5f62\u5f0f\u8c03\u7528\uff0c\u5b9e\u4f53\u7c7b\u53ea\u9700\u7ee7\u627f Model \u7c7b\u5373\u53ef\u8fdb\u884c\u5f3a\u5927\u7684 CRUD \u64cd\u4f5c<\/li><li><strong>\u652f\u6301\u81ea\u5b9a\u4e49\u5168\u5c40\u901a\u7528\u64cd\u4f5c<\/strong>\uff1a\u652f\u6301\u5168\u5c40\u901a\u7528\u65b9\u6cd5\u6ce8\u5165\uff08 Write once, use anywhere \uff09<\/li><li><strong>\u5185\u7f6e\u4ee3\u7801\u751f\u6210\u5668<\/strong>\uff1a\u91c7\u7528\u4ee3\u7801\u6216\u8005 Maven \u63d2\u4ef6\u53ef\u5feb\u901f\u751f\u6210 Mapper \u3001 Model \u3001 Service \u3001 Controller \u5c42\u4ee3\u7801\uff0c\u652f\u6301\u6a21\u677f\u5f15\u64ce\uff0c\u66f4\u6709\u8d85\u591a\u81ea\u5b9a\u4e49\u914d\u7f6e\u7b49\u60a8\u6765\u4f7f\u7528<\/li><li><strong>\u5185\u7f6e\u5206\u9875\u63d2\u4ef6<\/strong>\uff1a\u57fa\u4e8e MyBatis \u7269\u7406\u5206\u9875\uff0c\u5f00\u53d1\u8005\u65e0\u9700\u5173\u5fc3\u5177\u4f53\u64cd\u4f5c\uff0c\u914d\u7f6e\u597d\u63d2\u4ef6\u4e4b\u540e\uff0c\u5199\u5206\u9875\u7b49\u540c\u4e8e\u666e\u901a List \u67e5\u8be2<\/li><li><strong>\u5206\u9875\u63d2\u4ef6\u652f\u6301\u591a\u79cd\u6570\u636e\u5e93<\/strong>\uff1a\u652f\u6301 MySQL\u3001MariaDB\u3001Oracle\u3001DB2\u3001H2\u3001HSQL\u3001SQLite\u3001Postgre\u3001SQLServer \u7b49\u591a\u79cd\u6570\u636e\u5e93<\/li><li><strong>\u5185\u7f6e\u6027\u80fd\u5206\u6790\u63d2\u4ef6<\/strong>\uff1a\u53ef\u8f93\u51fa Sql \u8bed\u53e5\u4ee5\u53ca\u5176\u6267\u884c\u65f6\u95f4\uff0c\u5efa\u8bae\u5f00\u53d1\u6d4b\u8bd5\u65f6\u542f\u7528\u8be5\u529f\u80fd\uff0c\u80fd\u5feb\u901f\u63ea\u51fa\u6162\u67e5\u8be2<\/li><li><strong>\u5185\u7f6e\u5168\u5c40\u62e6\u622a\u63d2\u4ef6<\/strong>\uff1a\u63d0\u4f9b\u5168\u8868 delete \u3001 update \u64cd\u4f5c\u667a\u80fd\u5206\u6790\u963b\u65ad\uff0c\u4e5f\u53ef\u81ea\u5b9a\u4e49\u62e6\u622a\u89c4\u5219\uff0c\u9884\u9632\u8bef\u64cd\u4f5c<\/li><\/ul>\n\n\n\n<h3>1.3\u6846\u67b6\u7ed3\u6784<\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201205180435277.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201205180435277.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<h3>1.4 \u5feb\u901f\u5f00\u59cb<\/h3>\n\n\n\n<h4>1.4.1\u65b0\u5efa\u4e00\u4e2ajavaweb\u6570\u636e\u5e93\uff1a<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>create database if not  exists javaweb;<\/code><\/pre>\n\n\n\n<h4>1.4.2\u65b0\u5efa\u4e00\u4e2aAccount\u8868<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE TABLE `account` (\n  `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id\u4e3b\u952e\uff0c\u81ea\u589e',\n  `name` varchar(32) DEFAULT NULL,\n  `password` varchar(50) NOT NULL COMMENT '\u5bc6\u7801',\n  `createTime` datetime DEFAULT CURRENT_TIMESTAMP,\n  `status` int(11) DEFAULT '0',\n  `type` int(11) DEFAULT NULL,\n  `hobby` varchar(128) DEFAULT NULL,\n  `signature` varchar(128) DEFAULT NULL,\n  `age` int(4) DEFAULT NULL,\n  PRIMARY KEY (`id`),\n  UNIQUE KEY `name` (`name`)\n) ENGINE=InnoDB AUTO_INCREMENT=28 DEFAULT CHARSET=utf8 COMMENT='\u7528\u6237\u8868';<\/code><\/pre>\n\n\n\n<h4>1.4.3\u4f7f\u7528Navicat\u624b\u52a8\u63d2\u5165\u6570\u636e\uff1a<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201205180457901.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201205180457901.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<h4>1.4.4\u521b\u5efa\u4e00\u4e2aspringboot\u9879\u76ee<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201205180511943.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"[\u5916\u94fe\u56fe\u7247\u8f6c\u5b58\u5931\u8d25,\u6e90\u7ad9\u53ef\u80fd\u6709\u9632\u76d7\u94fe\u673a\u5236,\u5efa\u8bae\u5c06\u56fe\u7247\u4fdd\u5b58\u4e0b\u6765\u76f4\u63a5\u4e0a\u4f20(img-83poW168-1607162571115)(E:\\\u65b0\u6280\u672f\u5b66\u4e60\\java_study\\mybatis-plus\u5b66\u4e60\\images\\image-20201124234451760.png)]\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201205180511943.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" alt=\"[\u5916\u94fe\u56fe\u7247\u8f6c\u5b58\u5931\u8d25,\u6e90\u7ad9\u53ef\u80fd\u6709\u9632\u76d7\u94fe\u673a\u5236,\u5efa\u8bae\u5c06\u56fe\u7247\u4fdd\u5b58\u4e0b\u6765\u76f4\u63a5\u4e0a\u4f20(img-83poW168-1607162571115)(E:\\\u65b0\u6280\u672f\u5b66\u4e60\\java_study\\mybatis-plus\u5b66\u4e60\\images\\image-20201124234451760.png)]\"\/><\/figure><\/noscript>\n\n\n\n<p>\u914d\u7f6eapplication.properties\u6587\u4ef6\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>server.port=8080\n#\u6570\u636e\u5e93\u8fde\u63a5\u7684\u7528\u6237\u540d\nspring.datasource.username=root\n#\u6570\u636e\u5e93\u8fde\u63a5\u7684\u5bc6\u7801\nspring.datasource.password=root\n#\u6570\u636e\u5e93\u8fde\u63a5\u7684URL\nspring.datasource.url=jdbc:mysql:\/\/localhost:3306\/javaweb?serverTimezone=UTC\n#\u6570\u636e\u5e93\u8fde\u63a5\u7684\u9a71\u52a8   MySQL8\u4f7f\u7528com.mysql.cj.jdbc.Driver   ,mysql5\u4f7f\u7528com.mysql.jdbc.Driver\nspring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\n#\u914d\u7f6e\u65e5\u5fd7\nmybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl<\/code><\/pre>\n\n\n\n<h4>1.4.5\u5728entity\u5305\u4e2d\u65b0\u5efa\u4e00\u4e2a\u5b9e\u4f53\u7c7bAccount.java\uff08\u4e3a\u4e86\u7b80\u4fbf\u8fd9\u91cc\u53ea\u5bf9\u5e94\u4e86account\u8868\u4e2d\u7684\u4e09\u4e2a\u5b57\u6bb5\uff09<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.moyisuiying.booksystem.entity;\n\nimport lombok.*;\nimport org.springframework.stereotype.Repository;\n\n\/**\n * Classname:Account\n *\n * @description:\u7528\u6237\u5b9e\u4f53\u7c7b\n * @author: \u964c\u610f\u968f\u5f71\n * @Date: 2020-11-24 22:53\n * @Version: 1.0\n **\/\n@Data\n@AllArgsConstructor\n@NoArgsConstructor\npublic class Account {\n    private int id;\n    private String name;\n    private String password;\n\n}<\/code><\/pre>\n\n\n\n<h4>1.4.6\u5728dao\u5305\u4e2d\u65b0\u5efa\u4e00\u4e2a\u63a5\u53e3\u7c7bAccountDao.java\u7ee7\u627f\u4e8eBaseMapper.java\u63a5\u53e3<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.moyisuiying.booksystem.dao;\n\nimport com.baomidou.mybatisplus.core.mapper.BaseMapper;\nimport com.moyisuiying.booksystem.entity.Account;\nimport org.springframework.stereotype.Repository;\n\n\/**\n * Classname:AccountDao\n *\n * @description:\n * @author: \u964c\u610f\u968f\u5f71\n * @Date: 2020-11-24 22:57\n * @Version: 1.0\n **\/\n@Repository\npublic  interface AccountDao   extends BaseMapper&lt;Account> {\n}<\/code><\/pre>\n\n\n\n<h4>1.4.7\u5728\u4e3b\u542f\u52a8\u7c7bBooksystemApplication.java\u4e2d\u6dfb\u52a0\u626b\u63cfdao\u5305\u7684\u63a5\u53e3<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.moyisuiying.booksystem;\n\nimport org.mybatis.spring.annotation.MapperScan;\nimport org.springframework.boot.SpringApplication;\nimport org.springframework.boot.autoconfigure.SpringBootApplication;\n\n@SpringBootApplication\n@MapperScan(\"com.moyisuiying.booksystem.dao\")\npublic class BooksystemApplication {\n\n    public static void main(String&#91;] args) {\n        SpringApplication.run(BooksystemApplication.class, args);\n    }\n\n}<\/code><\/pre>\n\n\n\n<h4>1.4.8\u5728\u6d4b\u8bd5\u7c7b\u4e2d\u65b0\u5efa\u6d4b\u8bd5<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>package com.moyisuiying.booksystem;\n\nimport com.moyisuiying.booksystem.dao.AccountDao;\nimport com.moyisuiying.booksystem.entity.Account;\nimport org.junit.jupiter.api.Test;\nimport org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.boot.test.context.SpringBootTest;\n\nimport java.util.List;\n\n@SpringBootTest\nclass BooksystemApplicationTests {\n    @Autowired\n    AccountDao accountDao;\n    @Test\n    public  void testFindAll(){\n        List&lt;Account> accountList = accountDao.selectList(null);\n        accountList.forEach(System.out::println);\n    }\n\n}<\/code><\/pre>\n\n\n\n<h4>1.4.9\u5f00\u59cb\u6d4b\u8bd5<\/h4>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201205180543671.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201205180543671.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<p>\u53ef\u89c1\u6d4b\u8bd5\u8bbf\u95ee\u67e5\u627e\u6240\u6709\u6210\u529f\u3002<\/p>\n\n\n\n<h3>1.5\u6d4b\u8bd5\u7684\u6e90\u4ee3\u7801\u5df2\u4e0a\u4f20\u5230GitHub\u4e2d\uff1a<a href=\"https:\/\/github.com\/LJF2402901363\/java_study.git\" target=\"_blank\"  rel=\"nofollow\" >https:\/\/github.com\/LJF2402901363\/java_study.git<\/a><\/h3>\n\n\n\n<figure class=\"wp-block-image\"><img   class=\"lazyload\" data-src=\"https:\/\/img-blog.csdnimg.cn\/20201205181629733.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" src=\"https:\/\/cdn.jsdelivr.net\/gh\/moezx\/cdn@3.0.2\/img\/svg\/loader\/trans.ajax-spinner-preloader.svg\" onerror=\"imgError(this)\"  alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure >\n<noscript><img src=\"https:\/\/img-blog.csdnimg.cn\/20201205181629733.png?x-oss-process=image\/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTE4NzAwMjI=,size_16,color_FFFFFF,t_70\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\"\/><\/figure><\/noscript>\n\n\n\n<h3><\/h3>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u521d\u6b65\u8ba4\u8bc6 1.1\u7b80\u4ecb Mybatis-Plus\uff08\u7b80\u79f0MP\uff09\u662f\u4e00\u4e2a Mybatis \u7684\u589e\u5f3a\u5de5\u5177\uff0c\u5728 Mybatis \u7684\u57fa\u7840\u4e0a\u53ea\u505a &#8230;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[145,146,147],"_links":{"self":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts\/397"}],"collection":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/comments?post=397"}],"version-history":[{"count":1,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts\/397\/revisions"}],"predecessor-version":[{"id":398,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/posts\/397\/revisions\/398"}],"wp:attachment":[{"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/media?parent=397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/categories?post=397"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/moyisuiying.com\/index.php\/wp-json\/wp\/v2\/tags?post=397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}