{"id":2620,"date":"2018-04-06T11:54:49","date_gmt":"2018-04-06T03:54:49","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2620"},"modified":"2018-04-06T11:54:49","modified_gmt":"2018-04-06T03:54:49","slug":"%e9%98%bf%e9%87%8c%e5%b7%b4%e5%b7%b4-jarslink-%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2620","title":{"rendered":"\u963f\u91cc\u5df4\u5df4 JarsLink \u6559\u7a0b"},"content":{"rendered":"<p>\n\tJarsLink \u662f\u4e00\u4e2a\u6a21\u5757\u5316\u7684\u5f00\u53d1\u6846\u67b6\u3002\u7531\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u51fa\u6765\uff0c\u76ee\u524d\u5728\u963f\u91cc\u5fae\u8d37\u4e8b\u4e1a\u7fa4\u5e7f\u6cdb\u4f7f\u7528\u3002\n<\/p>\n<p>\n\tJarsLink \u539f\u540dTitan\uff0c\u5b83\u63d0\u4f9b\u5728\u8fd0\u884c\u65f6\u52a8\u6001\u52a0\u8f7d\u6a21\u5757\uff08\u4e00\u4e2aJAR\u5305\uff09\u3001\u5378\u8f7d\u6a21\u5757\u548c\u6a21\u5757\u95f4\u8c03\u7528\u7684API\u3002\u5b98\u7f51\u5730\u5740\uff1a<a href=\"https:\/\/github.com\/alibaba\/jarslink\" name=\"jarslink\" target=\"_blank\" title=\"jarslink\">https:\/\/github.com\/alibaba\/jarslink<\/a>\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"JarsLink\" src=\"https:\/\/camo.githubusercontent.com\/5c73321450142712edac5c62b1154d6badf195e5\/68747470733a2f2f74656368666f72756d2d696d672e636e2d68616e677a686f752e6f73732d7075622e616c6979756e2d696e632e636f6d2f313532323733383733323837392f313230302d3632382d254537254143254143332545352542392538352e6a7067\" style=\"width: 1200px;height: 628px\" \/>\n<\/p>\n<h2>\n\tJarsLink \u6a21\u5757\u5316\u5f00\u53d1\u7684\u597d\u5904<br \/>\n<\/h2>\n<p>\n\t<img decoding=\"async\" alt=\"\u6a21\u5757\u5316\u5f00\u53d1\u7684\u597d\u5904\" src=\"https:\/\/img-bbs.csdn.net\/upload\/201804\/06\/1522986282_537935.jpeg\" style=\"width: 640px;height: 326px\" \/>\n<\/p>\n<ul>\n<li>\n\t\t\u53ef\u63d2\u62d4\uff0c\u4e00\u4e2a\u5e94\u7528\u7531\u591a\u4e2a\u6a21\u5757\u7ec4\u6210\uff0c\u5e94\u7528\u91cc\u7684\u6a21\u5757\u53ef\u62c6\u548c\u5408\uff0c\u6a21\u5757\u53ef\u5feb\u901f\u5728\u591a\u4e2a\u7cfb\u7edf\u4e2d\u8fc1\u79fb\u548c\u90e8\u7f72\u3002\n\t<\/li>\n<li>\n\t\t\u6a21\u5757\u5316\u5f00\u53d1\uff0c\u6a21\u5757\u4e4b\u95f4\u4e92\u76f8\u9694\u79bb\uff0c\u5b9e\u73b0\u6545\u969c\u9694\u79bb\u3002\n\t<\/li>\n<li>\n\t\t\u4e00\u4e2a\u6a21\u5757\u4e00\u4e2a\u5206\u652f\uff0c\u4e0d\u4f1a\u5f15\u53d1\u4ee3\u7801\u51b2\u7a81\u3002\n\t<\/li>\n<li>\n\t\t\u5728\u6a21\u5757\u4e2d\u589e\u52a0\u6216\u4fee\u6539\u529f\u80fd\uff0c\u53ea\u4f1a\u5f71\u54cd\u5f53\u524d\u6a21\u5757\uff0c\u4e0d\u4f1a\u5f71\u54cd\u6574\u4e2a\u5e94\u7528\u3002\n\t<\/li>\n<li>\n\t\t\u52a8\u6001\u90e8\u7f72\uff0c\u5728\u8fd0\u884c\u65f6\u628a\u6a21\u5757\u90e8\u7f72\u5230\u5e94\u7528\u4e2d\uff0c\u5feb\u901f\u4fee\u590d\u6545\u969c\uff0c\u63d0\u9ad8\u53d1\u5e03\u6548\u7387\u3002\n\t<\/li>\n<li>\n\t\t\u591a\u7248\u672c\u90e8\u7f72\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u540c\u65f6\u90e8\u7f72\u67d0\u4e2a\u6a21\u5757\u7684\u65b0\u65e7\u7248\u672c\uff0c\u8fdb\u884cAB TEST\u3002\n\t<\/li>\n<li>\n\t\t\u51cf\u5c11\u8d44\u6e90\u6d88\u8017\uff0c\u901a\u8fc7\u90e8\u7f72\u6a21\u5757\u7684\u65b9\u5f0f\u51cf\u5c11\u5e94\u7528\u6570\u91cf\u548c\u673a\u5668\u6570\u91cf\u3002\n\t<\/li>\n<\/ul>\n<p>\n\tJarsLink \u7684\u4f7f\u7528\n<\/p>\n<p>\n\t\u5728 maven \u7684 pom.xml \u4e2d\u914d\u7f6e JarsLink \u7684\u5305\u3002\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;properties&gt;  \r\n    &lt;slf4j.version&gt;1.7.7&lt;\/slf4j.version&gt;  \r\n    &lt;apache.commons.lang.version&gt;2.6&lt;\/apache.commons.lang.version&gt;  \r\n    &lt;apache.commons.collections.version&gt;3.2.1&lt;\/apache.commons.collections.version&gt;  \r\n&lt;\/properties&gt;  \r\n&lt;dependencies&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;org.springframework&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;spring-aop&lt;\/artifactId&gt;  \r\n        &lt;version&gt;${org.springframework.version}&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;org.springframework&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;spring-web&lt;\/artifactId&gt;  \r\n        &lt;version&gt;${org.springframework.version}&lt;\/version&gt;  \r\n        &lt;optional&gt;true&lt;\/optional&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;commons-logging&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;commons-logging&lt;\/artifactId&gt;  \r\n        &lt;version&gt;1.1.3&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;org.apache.commons&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;commons-lang3&lt;\/artifactId&gt;  \r\n        &lt;version&gt;3.3.2&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;commons-lang&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;commons-lang&lt;\/artifactId&gt;  \r\n        &lt;version&gt;${apache.commons.lang.version}&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;org.slf4j&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;slf4j-api&lt;\/artifactId&gt;  \r\n        &lt;version&gt;${slf4j.version}&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;commons-collections&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;commons-collections&lt;\/artifactId&gt;  \r\n        &lt;version&gt;${apache.commons.collections.version}&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;com.google.guava&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;guava&lt;\/artifactId&gt;  \r\n        &lt;version&gt;17.0&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n        &lt;groupId&gt;junit&lt;\/groupId&gt;  \r\n        &lt;artifactId&gt;junit&lt;\/artifactId&gt;  \r\n        &lt;version&gt;4.12&lt;\/version&gt;  \r\n    &lt;\/dependency&gt;  \r\n    &lt;dependency&gt;  \r\n\t\t&lt;groupId&gt;com.alipay.jarslink&lt;\/groupId&gt;  \r\n\t\t&lt;artifactId&gt;jarslink-api&lt;\/artifactId&gt;  \r\n\t\t&lt;version&gt;1.5.0.20180213&lt;\/version&gt;  \r\n    &lt;\/dependency&gt; \r\n&lt;\/dependencies&gt;  <\/pre>\n<p>\n\t\u5728\u7cfb\u7edf\u4e2d\u914d\u7f6e jarslink bean\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\n&lt;bean name=&quot;moduleLoader&quot; class=&quot;com.alipay.jarslink.api.impl.ModuleLoaderImpl&quot;&gt;&lt;\/bean&gt;  \r\n&lt;bean name=&quot;moduleManager&quot; class=&quot;com.alipay.jarslink.api.impl.ModuleManagerImpl&quot;&gt;&lt;\/bean&gt;  <\/pre>\n<p>\n\t\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u96c6\u6210JarsLink API\u3002\u4f7f\u7528JarsLink API\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u7ee7\u627fAbstractModuleRefreshScheduler\uff0c\u5e76\u63d0\u4f9b\u6a21\u5757\u7684\u914d\u7f6e\u4fe1\u606f\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\npublic class ModuleRefreshSchedulerImpl extends AbstractModuleRefreshScheduler {  \r\n   @Override   \r\n    public List &lt; ModuleConfig &gt; queryModuleConfigs() {  \r\n        return ImmutableList.of(ModuleManagerTest.buildModuleConfig());  \r\n    }  \r\n    public static ModuleConfig buildModuleConfig() {  \r\n        URL demoModule = Thread.currentThread().getContextClassLoader().getResource(&quot;META-INF\/spring\/demo-1.0.0.jar&quot;);  \r\n        ModuleConfig moduleConfig = new ModuleConfig();  \r\n        moduleConfig.setName(&quot;demo&quot;);  \r\n        moduleConfig.setEnabled(true);  \r\n        moduleConfig.setVersion(&quot;1.0.0.20170621&quot;);  \r\n        moduleConfig.setProperties(ImmutableMap.of(&quot;svnPath&quot;, new Object()));  \r\n        moduleConfig.setModuleUrl(ImmutableList.of(demoModule));  \r\n        return moduleConfig;  \r\n    } \r\n}<\/pre>\n<p>\n\t\u8fd9\u4e2a\u8c03\u5ea6\u5668\u5728bean\u521d\u59cb\u5316\u7684\u65f6\u5019\u4f1a\u542f\u52a8\u4e00\u4e2a\u8c03\u5ea6\u4efb\u52a1\uff0c\u6bcf\u5206\u949f\u5237\u65b0\u4e00\u6b21\u6a21\u5757\uff0c\u5982\u679c\u6a21\u5757\u7684\u7248\u672c\u53f7\u53d1\u751f\u53d8\u66f4\u5219\u4f1a\u66f4\u65b0\u6a21\u5757\u3002\u5b9e\u73b0\u8fd9\u4e2a\u65b9\u6cd5\u65f6\uff0c\u5fc5\u987b\u628a\u6a21\u5757\uff08jar\u5305\uff09\u4e0b\u8f7d\u5230\u673a\u5668\u672c\u5730\uff0c\u6a21\u5757\u7684\u914d\u7f6e\u4fe1\u606f\u8bf4\u660e\u5982\u4e0b\uff1a\n<\/p>\n<ul>\n<li>\n\t\tname\uff1a\u5168\u5c40\u552f\u4e00\uff0c\u5efa\u8bae\u4f7f\u7528\u82f1\u6587\uff0c\u5ffd\u7565\u5927\u5c0f\u5199\u3002\n\t<\/li>\n<li>\n\t\tenabled\uff1a\u5f53\u524d\u6a21\u5757\u662f\u5426\u53ef\u7528\uff0c\u9ed8\u8ba4\u53ef\u7528\uff0c\u5378\u8f7d\u6a21\u5757\u65f6\u53ef\u4ee5\u8bbe\u7f6e\u6210false\u3002\n\t<\/li>\n<li>\n\t\tversion\uff1a\u6a21\u5757\u7684\u7248\u672c\uff0c\u5982\u679c\u7248\u672c\u53f7\u548c\u4e4b\u524d\u52a0\u8f7d\u7684\u4e0d\u4e00\u81f4\uff0c\u6846\u67b6\u5219\u4f1a\u91cd\u65b0\u52a0\u8f7d\u6a21\u5757\u3002\n\t<\/li>\n<li>\n\t\tProperties\uff1aspring\u5c5e\u6027\u914d\u7f6e\u6587\u4ef6\u3002\n\t<\/li>\n<li>\n\t\tmoduleUrl\uff1a\u6a21\u5757\u7684\u672c\u5730\u5b58\u653e\u5730\u5740\u3002\n\t<\/li>\n<li>\n\t\toverridePackages\uff1a\u9700\u8981\u7a81\u7834\u53cc\u4eb2\u59d4\u6d3e\u7684\u5305\u540d,\u4e00\u822c\u4e0d\u63a8\u8350\u4f7f\u7528\uff0c\u8303\u56f4\u8d8a\u5c0f\u8d8a\u597d\uff0c\u5982com.alipay.XX\u3002\n\t<\/li>\n<\/ul>\n<p>\n\t\u628aModuleRefreshSchedulerImpl\u7c7b\u6ce8\u518c\u6210Spring\u7684bean\u3002\n<\/p>\n<pre class=\"brush:xml;\">\r\n&lt;bean id=&quot;moduleRefreshScheduler&quot; class=&quot;com.alipay.**.ModuleRefreshSchedulerImpl&quot;&gt;  \r\n    &lt;property name=&quot;moduleManager&quot; ref=&quot;moduleManager&quot; \/&gt;  \r\n    &lt;property name=&quot;moduleLoader&quot; ref=&quot;moduleLoader&quot; \/&gt;  \r\n&lt;\/bean&gt;  <\/pre>\n<p>\n\tJarsLink API \u6682\u65f6\u4e0d\u63d0\u4f9b\u6a21\u5757\u53ef\u89c6\u5316\u7ba1\u7406\u80fd\u529b\uff0c\u6240\u4ee5\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u7cfb\u7edf\u6765\u7ba1\u7406\u548c\u53d1\u5e03\u6a21\u5757\u3002\n<\/p>\n<p>\n\t\u76ee\u524d\u53ef\u4ee5\u901a\u8fc7com.alipay. jarslink.api.ModuleManager#getModules\u83b7\u53d6\u8fd0\u884c\u65f6\u6240\u6709\u6a21\u5757\u7684\u4fe1\u606f\u3002\n<\/p>\n<p>\n\t\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528API\u6765\u52a0\u8f7d\u5e76\u6ce8\u518c\u6a21\u5757\uff0c\u8be6\u7ec6\u4f7f\u7528\u65b9\u5f0f\u53ef\u4ee5\u53c2\u8003ModuleManagerTest\uff0c\u4ee3\u7801\u5982\u4e0b\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\n\/\/1:\u52a0\u8f7d\u6a21\u5757 Module module = moduleLoader.load(buildModuleConfig());   \r\n\/\/2:\u6ce8\u518c\u6a21\u5757 ModuleManager moduleManager = new ModuleManagerImpl(); moduleManager.register(module); <\/pre>\n<p>\n\t\u5728\u6a21\u5757\u4e2d\u53ea\u9700\u8981\u5b9e\u73b0\u5e76\u5f00\u53d1Action\uff0c\u4ee3\u7801\u5982\u4e0b\uff1a\n<\/p>\n<pre class=\"brush:java;\">\r\npublic class HelloWorldAction implements Action &lt; ModuleConfig, ModuleConfig &gt; {  \r\n    @Override   \r\n    public ModuleConfig execute(ModuleConfig actionRequest) {  \r\n        ModuleConfig moduleConfig = new ModuleConfig();  \r\n        moduleConfig.setName(actionRequest.getName());  \r\n        moduleConfig.setEnabled(actionRequest.getEnabled());  \r\n        moduleConfig.setVersion(actionRequest.getVersion());  \r\n        moduleConfig.setModuleUrl(actionRequest.getModuleUrl());  \r\n        moduleConfig.setProperties(actionRequest.getProperties());  \r\n        moduleConfig.setOverridePackages(actionRequest.getOverridePackages());  \r\n        return moduleConfig;  \r\n    }  \r\n    @Override   \r\n    public String getActionName() {  \r\n        return &quot;helloworld&quot;;  \r\n    }  \r\n}  <\/pre>\n<p>\n\t\u5f00\u53d1\u8005\u9700\u8981\u5229\u7528JarsLink API\u628a\u8bf7\u6c42\u8f6c\u53d1\u7ed9\u6a21\u5757\uff0c\u5148\u6839\u636e\u6a21\u5757\u540d\u67e5\u627e\u6a21\u5757\uff0c\u518d\u6839\u636eaciton name\u67e5\u627eAction\uff0c\u6700\u540e\u6267\u884cAction\u3002\n<\/p>\n<pre class=\"brush:java;\">\r\n\/\/\u67e5\u627e\u6a21\u5757  \r\nModule findModule = moduleManager.find(module.getName());  \r\nAssert.assertNotNull(findModule);  \r\n\/\/\u67e5\u627e\u548c\u6267\u884c  \r\nActionString actionName = &quot;helloworld&quot;;  \r\nModuleConfig moduleConfig = new ModuleConfig();  \r\nmoduleConfig.setName(&quot;h&quot;);  \r\nmoduleConfig.setEnabled(true);  \r\nModuleConfig result = findModule.doAction(actionName, moduleConfig); <\/pre>\n<p>\n\tJarsLink \u76ee\u524d\u8fd8\u6709\u5f88\u591a\u5176\u4ed6\u4f18\u79c0\u7684\u7279\u6027\u3002\u7f51\u4e0a\u7684\u8d44\u6599\u8fd8\u662f\u975e\u5e38\u5c11\u7684\uff0c\u5173\u4e8e\u6df1\u5165\u7684\u5b66\u4e60\u548c\u4f7f\u7528\uff0c\u8bf7\u53c2\u8003\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=2620\">\u963f\u91cc\u5df4\u5df4 JarsLink \u6559\u7a0b<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>JarsLink \u662f\u4e00\u4e2a\u6a21\u5757\u5316\u7684\u5f00\u53d1\u6846\u67b6\u3002\u7531\u963f\u91cc\u5df4\u5df4\u5f00\u6e90\u51fa\u6765\uff0c\u76ee\u524d\u5728\u963f\u91cc\u5fae\u8d37\u4e8b\u4e1a\u7fa4\u5e7f\u6cdb\u4f7f\u7528\u3002 JarsLink [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1192,1609,69,587,1149],"class_list":["post-2620","post","type-post","status-publish","format-standard","hentry","category-java","tag-hook","tag-jarslink","tag-java","tag-spring-boot","tag-1149"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2620","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2620"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2620\/revisions"}],"predecessor-version":[{"id":2621,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2620\/revisions\/2621"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2620"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2620"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2620"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}