{"id":10006597,"date":"2022-09-26T16:33:51","date_gmt":"2022-09-26T08:33:51","guid":{"rendered":"https:\/\/ityet.com\/?p=10006597"},"modified":"2022-09-26T16:33:51","modified_gmt":"2022-09-26T08:33:51","slug":"%e6%8e%a5%e4%ba%86%e4%b8%aa%e5%8f%98%e6%80%81%e9%9c%80%e6%b1%82%ef%bc%9a%e7%bb%99%e5%ae%9a%e4%b8%80%e4%b8%aa%e6%8e%a5%e5%8f%a3%ef%bc%8c%e8%a6%81%e7%94%a8%e6%88%b7%e8%87%aa%e5%ae%9a%e4%b9%89%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/itmax.cn\/?p=10006597","title":{"rendered":"\u63a5\u4e86\u4e2a\u53d8\u6001\u9700\u6c42\uff1a\u7ed9\u5b9a\u4e00\u4e2a\u63a5\u53e3\uff0c\u8981\u7528\u6237\u81ea\u5b9a\u4e49\u52a8\u6001\u5b9e\u73b0\u5e76\u4e0a\u4f20\u70ed\u90e8\u7f72\uff0c\u600e\u4e48\u641e\uff1f"},"content":{"rendered":"<p>\u8fd1\u671f\u5f00\u53d1\u7cfb\u7edf\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e2a\u9700\u6c42\uff0c\u7cfb\u7edf\u7ed9\u5b9a\u4e00\u4e2a\u63a5\u53e3\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5f00\u53d1\u8be5\u63a5\u53e3\u7684\u5b9e\u73b0\uff0c\u5e76\u5c06\u5b9e\u73b0\u6253\u6210jar\u5305\uff0c\u4e0a\u4f20\u5230\u7cfb\u7edf\u4e2d\u3002\u7cfb\u7edf\u5b8c\u6210\u70ed\u90e8\u7f72\uff0c\u5e76\u5207\u6362\u8be5\u63a5\u53e3\u7684\u5b9e\u73b0\u3002<\/p>\n<h3>\u5b9a\u4e49\u7b80\u5355\u7684\u63a5\u53e3<\/h3>\n<p>\u8fd9\u91cc\u4ee5\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\u529f\u80fd\u4e3a\u4f8b\uff0c\u63a5\u53e3\u5b9a\u4e49\u6bd4\u8f83\u7b80\u5355\uff0c\u76f4\u63a5\u4e0a\u4ee3\u7801\u3002<\/p>\n<pre><code>public interface Calculator {\n    int calculate(int a, int b);\n    int add(int a, int b);\n}<\/code><\/pre>\n<h3>\u8be5\u63a5\u53e3\u7684\u4e00\u4e2a\u7b80\u5355\u7684\u5b9e\u73b0<\/h3>\n<p>\u8003\u8651\u5230\u7528\u6237\u5b9e\u73b0\u63a5\u53e3\u7684\u4e24\u79cd\u65b9\u5f0f\uff0c\u4f7f\u7528spring\u4e0a\u4e0b\u6587\u7ba1\u7406\u7684\u65b9\u5f0f\uff0c\u6216\u8005\u4e0d\u4f9d\u8d56spring\u7ba1\u7406\u7684\u65b9\u5f0f\uff0c\u8fd9\u91cc\u79f0\u5b83\u4eec\u4e3a\u6ce8\u89e3\u65b9\u5f0f\u548c\u53cd\u5c04\u65b9\u5f0f\u3002<code>calculate<\/code>\u65b9\u6cd5\u5bf9\u5e94\u6ce8\u89e3\u65b9\u5f0f\uff0cadd\u65b9\u6cd5\u5bf9\u5e94\u53cd\u5c04\u65b9\u5f0f\u3002<\/p>\n<p>\u8ba1\u7b97\u5668\u63a5\u53e3\u5b9e\u73b0\u7c7b\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>@Service\npublic class CalculatorImpl implements Calculator {\n    @Autowired\n    CalculatorCore calculatorCore;\n    \/**\n     * \u6ce8\u89e3\u65b9\u5f0f\n     *\/\n    @Override\n    public int calculate(int a, int b) {\n        int c = calculatorCore.add(a, b);\n        return c;\n    }\n    \/**\n     * \u53cd\u5c04\u65b9\u5f0f\n     *\/\n    @Override\n    public int add(int a, int b) {\n        return new CalculatorCore().add(a, b);\n    }\n}<\/code><\/pre>\n<p>\u8fd9\u91cc\u6ce8\u5165<code>CalculatorCore<\/code>\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u9a8c\u8bc1\u5728\u6ce8\u89e3\u6a21\u5f0f\u4e0b\uff0c\u7cfb\u7edf\u53ef\u4ee5\u5b8c\u6574\u7684\u6784\u9020\u51fabean\u7684\u4f9d\u8d56\u4f53\u7cfb\uff0c\u5e76\u6ce8\u518c\u5230\u5f53\u524dspring\u5bb9\u5668\u4e2d\u3002<code>CalculatorCore<\/code>\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>@Service\npublic class CalculatorCore {\n    public int add(int a, int b) {\n        return a+b;\n    }\n}<\/code><\/pre>\n<p>\u8fd9\u91cc\u63a8\u8350\u4e00\u4e2a Spring Boot \u57fa\u7840\u6559\u7a0b\uff1a<\/p>\n<blockquote><p><a href=\"https:\/\/link.segmentfault.com\/?enc=Zzmjd04BaAH5lZZOx196iA%3D%3D.1ORrdnCgfzzw%2B6zgX5O0C2KgGFGaou9595GR9hrB8GAMQxmxjSv9MPLjjpu4aBj%2FjIL7Y47gRGH9jwHCADHhfw%3D%3D\" rel=\"nofollow\">https:\/\/github.com\/javastacks&#8230;<\/a><\/p><\/blockquote>\n<h3>\u53cd\u5c04\u65b9\u5f0f\u70ed\u90e8\u7f72<\/h3>\n<p>\u7528\u6237\u628ajar\u5305\u4e0a\u4f20\u5230\u7cfb\u7edf\u7684\u6307\u5b9a\u76ee\u5f55\u4e0b\uff0c\u8fd9\u91cc\u5b9a\u4e49\u4e0a\u4f20jar\u6587\u4ef6\u8def\u5f84\u4e3ajarAddress\uff0cjar\u7684Url\u8def\u5f84\u4e3ajarPath\u3002<\/p>\n<pre><code>private static String jarAddress = &quot;E:\/zzq\/IDEA_WS\/CalculatorTest\/lib\/Calculator.jar&quot;;\nprivate static String jarPath = &quot;file:\/&quot; + jarAddress;<\/code><\/pre>\n<p>\u5e76\u4e14\u53ef\u4ee5\u8981\u6c42\u7528\u6237\u586b\u5199jar\u5305\u4e2d\u63a5\u53e3\u5b9e\u73b0\u7c7b\u7684\u5b8c\u6574\u7c7b\u540d\u3002\u63a5\u4e0b\u6765\u7cfb\u7edf\u8981\u628a\u4e0a\u4f20\u7684jar\u5305\u52a0\u8f7d\u5230\u5f53\u524d\u7ebf\u7a0b\u7684\u7c7b\u52a0\u8f7d\u5668\u4e2d\uff0c\u7136\u540e\u901a\u8fc7\u5b8c\u6574\u7c7b\u540d\uff0c\u52a0\u8f7d\u5f97\u5230\u8be5\u5b9e\u73b0\u7684Class\u5bf9\u8c61\u3002\u7136\u540e\u53cd\u5c04\u8c03\u7528\u5373\u53ef\uff0c\u5b8c\u6574\u4ee3\u7801\uff1a<\/p>\n<pre><code>\/**\n * \u70ed\u52a0\u8f7dCalculator\u63a5\u53e3\u7684\u5b9e\u73b0 \u53cd\u5c04\u65b9\u5f0f\n *\/\npublic static void hotDeployWithReflect() throws Exception {\n    URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{new URL(jarPath)}, Thread.currentThread().getContextClassLoader());\n    Class clazz = urlClassLoader.loadClass(&quot;com.nci.cetc15.calculator.impl.CalculatorImpl&quot;);\n    Calculator calculator = (Calculator) clazz.newInstance();\n    int result = calculator.add(1, 2);\n    System.out.println(result);\n}<\/code><\/pre>\n<h3>\u6ce8\u89e3\u65b9\u5f0f\u70ed\u90e8\u7f72<\/h3>\n<p>\u5982\u679c\u7528\u6237\u4e0a\u4f20\u7684jar\u5305\u542b\u4e86spring\u7684\u4e0a\u4e0b\u6587\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u626b\u63cfjar\u5305\u91cc\u7684\u6240\u6709\u9700\u8981\u6ce8\u5165spring\u5bb9\u5668\u7684bean\uff0c\u6ce8\u518c\u5230\u5f53\u524d\u7cfb\u7edf\u7684spring\u5bb9\u5668\u4e2d\u3002\u5176\u5b9e\uff0c\u8fd9\u5c31\u662f\u4e00\u4e2a\u7c7b\u7684\u70ed\u52a0\u8f7d+\u52a8\u6001\u6ce8\u518c\u7684\u8fc7\u7a0b\u3002<\/p>\n<p>\u76f4\u63a5\u4e0a\u4ee3\u7801\uff1a<\/p>\n<pre><code>\/**\n * \u52a0\u5165jar\u5305\u540e \u52a8\u6001\u6ce8\u518cbean\u5230spring\u5bb9\u5668\uff0c\u5305\u62ecbean\u7684\u4f9d\u8d56\n *\/\npublic static void hotDeployWithSpring() throws Exception {\n    Set&lt;String&gt; classNameSet = DeployUtils.readJarFile(jarAddress);\n    URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{new URL(jarPath)}, Thread.currentThread().getContextClassLoader());\n    for (String className : classNameSet) {\n        Class clazz = urlClassLoader.loadClass(className);\n        if (DeployUtils.isSpringBeanClass(clazz)) {\n            BeanDefinitionBuilder beanDefinitionBuilder = BeanDefinitionBuilder.genericBeanDefinition(clazz);\n            defaultListableBeanFactory.registerBeanDefinition(DeployUtils.transformName(className), beanDefinitionBuilder.getBeanDefinition());\n        }\n    }\n}<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u8fc7\u7a0b\u4e2d\uff0c\u5c06jar\u52a0\u8f7d\u5230\u5f53\u524d\u7ebf\u7a0b\u7c7b\u52a0\u8f7d\u5668\u7684\u8fc7\u7a0b\u548c\u4e4b\u524d\u53cd\u5c04\u65b9\u5f0f\u662f\u4e00\u6837\u7684\u3002\u7136\u540e\u626b\u63cfjar\u5305\u4e0b\u6240\u6709\u7684\u7c7b\u6587\u4ef6\uff0c\u83b7\u53d6\u5230\u5b8c\u6574\u7c7b\u540d\uff0c\u5e76\u4f7f\u7528\u5f53\u524d\u7ebf\u7a0b\u7c7b\u52a0\u8f7d\u5668\u52a0\u8f7d\u51fa\u8be5\u7c7b\u540d\u5bf9\u5e94\u7684class\u5bf9\u8c61\u3002\u5224\u65ad\u8be5class\u5bf9\u8c61\u662f\u5426\u5e26\u6709spring\u7684\u6ce8\u89e3\uff0c\u5982\u679c\u5305\u542b\uff0c\u5219\u5c06\u8be5\u5bf9\u8c61\u6ce8\u518c\u5230\u7cfb\u7edf\u7684spring\u5bb9\u5668\u4e2d\u3002<\/p>\n<p>DeployUtils\u5305\u542b\u8bfb\u53d6jar\u5305\u6240\u6709\u7c7b\u6587\u4ef6\u7684\u65b9\u6cd5\u3001\u5224\u65adclass\u5bf9\u8c61\u662f\u5426\u5305\u542bsping\u6ce8\u89e3\u7684\u65b9\u6cd5\u3001\u83b7\u53d6\u6ce8\u518c\u5bf9\u8c61\u5bf9\u8c61\u540d\u7684\u65b9\u6cd5\u3002\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>\/**\n * \u8bfb\u53d6jar\u5305\u4e2d\u6240\u6709\u7c7b\u6587\u4ef6\n *\/\npublic static Set&lt;String&gt; readJarFile(String jarAddress) throws IOException {\n    Set&lt;String&gt; classNameSet = new HashSet&lt;&gt;();\n    JarFile jarFile = new JarFile(jarAddress);\n    Enumeration&lt;JarEntry&gt; entries = jarFile.entries();\/\/\u904d\u5386\u6574\u4e2ajar\u6587\u4ef6\n    while (entries.hasMoreElements()) {\n        JarEntry jarEntry = entries.nextElement();\n        String name = jarEntry.getName();\n        if (name.endsWith(&quot;.class&quot;)) {\n            String className = name.replace(&quot;.class&quot;, &quot;&quot;).replaceAll(&quot;\/&quot;, &quot;.&quot;);\n            classNameSet.add(className);\n        }\n    }\n    return classNameSet;\n}\n\/**\n * \u65b9\u6cd5\u63cf\u8ff0 \u5224\u65adclass\u5bf9\u8c61\u662f\u5426\u5e26\u6709spring\u7684\u6ce8\u89e3\n *\/\npublic static boolean isSpringBeanClass(Class&lt;?&gt; cla) {\n    if (cla == null) {\n        return false;\n    }\n    \/\/\u662f\u5426\u662f\u63a5\u53e3\n    if (cla.isInterface()) {\n        return false;\n    }\n    \/\/\u662f\u5426\u662f\u62bd\u8c61\u7c7b\n    if (Modifier.isAbstract(cla.getModifiers())) {\n        return false;\n    }\n    if (cla.getAnnotation(Component.class) != null) {\n        return true;\n    }\n    if (cla.getAnnotation(Repository.class) != null) {\n        return true;\n    }\n    if (cla.getAnnotation(Service.class) != null) {\n        return true;\n    }\n    return false;\n}\n\/**\n * \u7c7b\u540d\u9996\u5b57\u6bcd\u5c0f\u5199 \u4f5c\u4e3aspring\u5bb9\u5668beanMap\u7684key\n *\/\npublic static String transformName(String className) {\n    String tmpstr = className.substring(className.lastIndexOf(&quot;.&quot;) + 1);\n    return tmpstr.substring(0, 1).toLowerCase() + tmpstr.substring(1);\n}<\/code><\/pre>\n<h3>\u5220\u9664jar\u65f6\uff0c\u9700\u8981\u540c\u65f6\u5220\u9664spring\u5bb9\u5668\u4e2d\u6ce8\u518c\u7684bean<\/h3>\n<p>\u5728jar\u5305\u5207\u6362\u6216\u5220\u9664\u65f6\uff0c\u9700\u8981\u5c06\u4e4b\u524d\u6ce8\u518c\u5230spring\u5bb9\u5668\u7684bean\u5220\u9664\u3002spring\u5bb9\u5668\u7684bean\u7684\u5220\u9664\u64cd\u4f5c\u548c\u6ce8\u518c\u64cd\u4f5c\u662f\u76f8\u9006\u7684\u8fc7\u7a0b\uff0c\u8fd9\u91cc\u8981\u6ce8\u610f\u4f7f\u7528\u540c\u4e00\u4e2aspring\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>\/**\n * \u5220\u9664jar\u5305\u65f6 \u9700\u8981\u5728spring\u5bb9\u5668\u5220\u9664\u6ce8\u5165\n *\/\npublic static void delete() throws Exception {\n    Set&lt;String&gt; classNameSet = DeployUtils.readJarFile(jarAddress);\n    URLClassLoader urlClassLoader = new URLClassLoader(new URL[]{new URL(jarPath)}, Thread.currentThread().getContextClassLoader());\n    for (String className : classNameSet) {\n        Class clazz = urlClassLoader.loadClass(className);\n        if (DeployUtils.isSpringBeanClass(clazz)) {\n            defaultListableBeanFactory.removeBeanDefinition(DeployUtils.transformName(className));\n        }\n    }\n}<\/code><\/pre>\n<h3>\u6d4b\u8bd5<\/h3>\n<p>\u6d4b\u8bd5\u7c7b\u624b\u52a8\u6a21\u62df\u7528\u6237\u4e0a\u4f20jar\u7684\u529f\u80fd\u3002\u6d4b\u8bd5\u51fd\u6570\u5199\u4e86\u4e2a\u6b7b\u5faa\u73af\uff0c\u4e00\u5f00\u59cb\u6ca1\u6709\u627e\u5230jar\u4f1a\u629b\u51fa\u5f02\u5e38\uff0c\u6355\u83b7\u8be5\u5f02\u5e38\u5e76\u7761\u772010\u79d2\u3002\u8fd9\u65f6\u5019\u53ef\u4ee5\u628ajar\u624b\u52a8\u653e\u5230\u6307\u5b9a\u7684\u76ee\u5f55\u4e0b\u3002<\/p>\n<p>\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code> ApplicationContext applicationContext = new ClassPathXmlApplicationContext(&quot;applicationContext.xml&quot;);\n    DefaultListableBeanFactory defaultListableBeanFactory = (DefaultListableBeanFactory) applicationContext.getAutowireCapableBeanFactory();\n    while (true) {\n        try {\n              hotDeployWithReflect();\n\/\/            hotDeployWithSpring();\n\/\/            delete();\n            } catch (Exception e) {\n                e.printStackTrace();\n                Thread.sleep(1000 * 10);\n            }\n        }<\/code><\/pre>\n<p>\u770b\u5b8c\uff0c\u6da8\u59ff\u52bf\u4e86\u6ca1\uff1f<\/p>\n<blockquote>\n<p>\u539f\u6587\u94fe\u63a5\uff1a<a href=\"https:\/\/link.segmentfault.com\/?enc=HHwSEcK61g1UUPML1%2FUmNg%3D%3D.oh0XfngtgEJnipi6PKa8j5yk7y%2BMJFipuHMWVctKphZUZoaeatkYJt8PtUdhus3JHUzKaN2%2FwCkK5UycklClHoXD2H10TUYRp6VK7C%2B1D9o%3D\" rel=\"nofollow\">https:\/\/blog.csdn.net\/zhangzh&#8230;<\/a><\/p>\n<p>\u7248\u6743\u58f0\u660e\uff1a\u672c\u6587\u4e3aCSDN\u535a\u4e3b\u300czhangzhiqiang_0912\u300d\u7684\u539f\u521b\u6587\u7ae0\uff0c\u9075\u5faaCC 4.0 BY-SA\u7248\u6743\u534f\u8bae\uff0c\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u539f\u6587\u51fa\u5904\u94fe\u63a5\u53ca\u672c\u58f0\u660e\u3002<\/p>\n<\/blockquote>\n<p><strong>\u8fd1\u671f\u70ed\u6587\u63a8\u8350\uff1a<\/strong><\/p>\n<p>1.<a href=\"https:\/\/link.segmentfault.com\/?enc=SxivltINhPgrOJiHIBoMyw%3D%3D.7NA8N8nATHLfWiXbG%2Fld0iRR%2BFT4vcn3uEi624RW1Lo%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=Cb4L4SObNuTtnHqhuc0Mwg%3D%3D.ftCHgDbd0KPmIagJf%2FIf5XzAQ7z5zN6pDcb%2FNkoKGbuVL1zmwQbCgRq1CDgla3EQJ5ZkMpcI5nc5NnQGsfxdDw%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=6CRIWEFrju1pjodeN6zKfQ%3D%3D.snhJzUmWFBDhH9FIwmkCLM3Z5QDeHt97qYIJpxpMnU3h%2BQoS%2BlWxgUetnIcON9Ia\" 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=dGuqTBx0EyVJXoheAT%2BQbg%3D%3D.ewcpTQJyJpbix1A4bGnq7UGMEv%2Bw%2B4GFV9LE2MHxoil%2FbDK%2BVgaoQeIsUIUB3mF9o17YX8iO%2FNrE7HtWAVDXyg%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=k0CMdSQF81PPyLfK2%2FyhwQ%3D%3D.awGLULcs8WsxEDuDNHcWrho5DxcLCP4u7C5RdF075vE%2BISU3iHOlEEkteTBo8S0kUKY3iCtuPxvtau%2FoFV%2FjrINpGJR%2BTBpUt2R7A7ntVVk%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\/1190000042545819\">https:\/\/segmentfault.com\/a\/1190000042545819<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u671f\u5f00\u53d1\u7cfb\u7edf\u8fc7\u7a0b\u4e2d\u9047\u5230\u7684\u4e00\u4e2a\u9700\u6c42\uff0c\u7cfb\u7edf\u7ed9\u5b9a\u4e00\u4e2a\u63a5\u53e3\uff0c\u7528\u6237\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5f00\u53d1\u8be5\u63a5\u53e3\u7684\u5b9e\u73b0\uff0c\u5e76\u5c06\u5b9e\u73b0\u6253\u6210jar\u5305\uff0c\u4e0a\u4f20 [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-10006597","post","type-post","status-publish","format-standard","hentry"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006597","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"}],"replies":[{"embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10006597"}],"version-history":[{"count":0,"href":"https:\/\/itmax.cn\/index.php?rest_route=\/wp\/v2\/posts\/10006597\/revisions"}],"wp:attachment":[{"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10006597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10006597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itmax.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10006597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}