{"id":1547,"date":"2026-06-04T15:54:46","date_gmt":"2026-06-04T07:54:46","guid":{"rendered":"https:\/\/yunyanglib.cn\/?p=1547"},"modified":"2026-06-04T15:54:48","modified_gmt":"2026-06-04T07:54:48","slug":"%e3%80%90java%e3%80%91try-with-resources-%e4%b8%8e%e5%bc%82%e5%b8%b8%e5%a4%84%e7%90%86%e6%9c%80%e4%bd%b3%e5%ae%9e%e8%b7%b5","status":"publish","type":"post","link":"https:\/\/yunyanglib.cn\/?p=1547","title":{"rendered":"\u3010Java\u3011try-with-resources \u4e0e\u5f02\u5e38\u5904\u7406\u6700\u4f73\u5b9e\u8df5"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u5927\u5bb6\u597d\uff0c\u4eca\u5929\u7ee7\u7eed\u5206\u4eab Java \u57fa\u7840\u5e72\u8d27\uff0c\u672c\u6b21\u91cd\u70b9\u8bb2\u89e3<strong>try-with-resources<\/strong>\u8bed\u6cd5\uff0c\u540c\u65f6\u6574\u7406\u65e5\u5e38\u5f00\u53d1\u4e2d Java \u5f02\u5e38\u5904\u7406\u7684\u5168\u5957\u6700\u4f73\u5b9e\u8df5\uff0c\u642d\u914d\u4ee3\u7801\u793a\u4f8b\uff0c\u65b9\u4fbf\u5927\u5bb6\u76f4\u63a5\u843d\u5730\u4f7f\u7528\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u4f20\u7edf IO\u3001\u7f51\u7edc\u8fde\u63a5\u3001\u6570\u636e\u5e93\u8fde\u63a5\u7b49\u573a\u666f\u4e2d\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u624b\u52a8\u5173\u95ed\u8d44\u6e90\u3002\u65e9\u671f\u4f9d\u9760<code>try-catch-finally<\/code>\u5b9e\u73b0\u8d44\u6e90\u91ca\u653e\uff0c\u4ee3\u7801\u5197\u4f59\u4e14\u5bb9\u6613\u51fa\u9519\uff0c\u800c<code>try-with-resources<\/code>\u7684\u51fa\u73b0\u5b8c\u7f8e\u89e3\u51b3\u4e86\u8fd9\u4e00\u75db\u70b9\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u4f20\u7edf try-catch-finally \u56de\u987e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Java 7 \u4e4b\u524d\uff0c\u6240\u6709\u6d41\u3001\u8fde\u63a5\u7c7b\u8d44\u6e90\u90fd\u9700\u8981\u5728<code>finally<\/code>\u4ee3\u7801\u5757\u4e2d\u624b\u52a8\u5173\u95ed\uff0c\u4fdd\u8bc1\u8d44\u6e90\u65e0\u8bba\u662f\u5426\u51fa\u73b0\u5f02\u5e38\u90fd\u80fd\u6b63\u5e38\u91ca\u653e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801\u793a\u4f8b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.io.FileReader;\nimport java.io.IOException;\n\npublic class ResourceOldDemo {\n    public static void main(String&#91;] args) {\n        FileReader reader = null;\n        try {\n            \/\/ \u6253\u5f00\u6587\u4ef6\u6d41\u8d44\u6e90\n            reader = new FileReader(\"test.txt\");\n            char&#91;] buf = new char&#91;1024];\n            reader.read(buf);\n            System.out.println(new String(buf));\n        } catch (IOException e) {\n            e.printStackTrace();\n        } finally {\n            \/\/ \u5fc5\u987b\u5728finally\u4e2d\u624b\u52a8\u5173\u95ed\u8d44\u6e90\n            if (reader != null) {\n                try {\n                    reader.close();\n                } catch (IOException e) {\n                    e.printStackTrace();\n                }\n            }\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u53ef\u4ee5\u660e\u663e\u770b\u5230\uff1a<strong>\u5173\u95ed\u8d44\u6e90\u7684\u5d4c\u5957 try-catch \u8ba9\u4ee3\u7801\u53d8\u5f97\u81c3\u80bf<\/strong>\uff0c\u4e00\u65e6\u758f\u5ffd\u9057\u6f0f<code>close()<\/code>\u65b9\u6cd5\uff0c\u5c31\u4f1a\u9020\u6210\u8d44\u6e90\u6cc4\u6f0f\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001try-with-resources \u8be6\u89e3<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java 7 \u5f15\u5165<code>try-with-resources<\/code>\u8bed\u6cd5\uff0c\u6838\u5fc3\u4f5c\u7528\u662f<strong>\u81ea\u52a8\u5173\u95ed\u5b9e\u73b0\u4e86<code>AutoCloseable<\/code>\u63a5\u53e3\u7684\u8d44\u6e90<\/strong>\uff0c\u65e0\u9700\u624b\u52a8\u5728<code>finally<\/code>\u4e2d\u8c03\u7528\u5173\u95ed\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u57fa\u7840\u8bed\u6cd5\u4f7f\u7528<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bed\u6cd5\u89c4\u5219\uff1a\u5728<code>try<\/code>\u540e\u7684\u62ec\u53f7\u5185\u58f0\u660e\u8d44\u6e90\uff0c\u7a0b\u5e8f\u6267\u884c\u5b8c\u6bd5\u540e\uff0cJVM \u4f1a\u81ea\u52a8\u8c03\u7528\u8d44\u6e90\u7684<code>close()<\/code>\u65b9\u6cd5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801\u793a\u4f8b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.io.FileReader;\nimport java.io.IOException;\n\npublic class TryWithResourceDemo {\n    public static void main(String&#91;] args) {\n        \/\/ \u62ec\u53f7\u5185\u58f0\u660e\u8d44\u6e90\uff0c\u81ea\u52a8\u5173\u95ed\n        try (FileReader reader = new FileReader(\"test.txt\")) {\n            char&#91;] buf = new char&#91;1024];\n            reader.read(buf);\n            System.out.println(new String(buf));\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n        \/\/ \u65e0\u9700\u5199finally\u5173\u95ed\u8d44\u6e90\n    }\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u7ba1\u7406\u591a\u4e2a\u8d44\u6e90<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>try-with-resources<\/code>\u652f\u6301\u540c\u65f6\u58f0\u660e\u591a\u4e2a\u8d44\u6e90\uff0c\u591a\u4e2a\u8d44\u6e90\u7528<strong>\u5206\u53f7<\/strong>\u5206\u9694\uff0cJVM \u4f1a<strong>\u6309\u7167\u58f0\u660e\u7684\u9006\u5e8f<\/strong>\u4f9d\u6b21\u5173\u95ed\u8d44\u6e90\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801\u793a\u4f8b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>import java.io.FileReader;\nimport java.io.FileWriter;\nimport java.io.IOException;\n\npublic class MultiResourceDemo {\n    public static void main(String&#91;] args) {\n        \/\/ \u540c\u65f6\u58f0\u660e\u8bfb\u3001\u5199\u4e24\u4e2a\u6d41\u8d44\u6e90\n        try (FileReader reader = new FileReader(\"in.txt\");\n             FileWriter writer = new FileWriter(\"out.txt\")) {\n\n            char&#91;] buf = new char&#91;1024];\n            int len;\n            while ((len = reader.read(buf)) != -1) {\n                writer.write(buf, 0, len);\n            }\n        } catch (IOException e) {\n            e.printStackTrace();\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u81ea\u5b9a\u4e49\u8d44\u6e90\uff08\u5b9e\u73b0 AutoCloseable \u63a5\u53e3\uff09<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u60f3\u8981\u8ba9\u81ea\u5b9a\u4e49\u7c7b\u88ab<code>try-with-resources<\/code>\u7ba1\u7406\uff0c\u53ea\u9700\u8981\u5b9e\u73b0<code>AutoCloseable<\/code>\u63a5\u53e3\uff0c\u91cd\u5199<code>close()<\/code>\u65b9\u6cd5\u5373\u53ef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4ee3\u7801\u793a\u4f8b<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u81ea\u5b9a\u4e49\u8d44\u6e90\u7c7b\uff0c\u5b9e\u73b0AutoCloseable\nclass CustomResource implements AutoCloseable {\n    @Override\n    public void close() throws Exception {\n        System.out.println(\"\u81ea\u5b9a\u4e49\u8d44\u6e90\u5df2\u81ea\u52a8\u5173\u95ed\");\n    }\n\n    public void work() {\n        System.out.println(\"\u81ea\u5b9a\u4e49\u8d44\u6e90\u6b63\u5728\u5de5\u4f5c\");\n    }\n}\n\npublic class CustomResourceDemo {\n    public static void main(String&#91;] args) {\n        try (CustomResource resource = new CustomResource()) {\n            resource.work();\n        } catch (Exception e) {\n            e.printStackTrace();\n        }\n    }\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u81ea\u5b9a\u4e49\u8d44\u6e90\u6b63\u5728\u5de5\u4f5c\n\u81ea\u5b9a\u4e49\u8d44\u6e90\u5df2\u81ea\u52a8\u5173\u95ed\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u5f02\u5e38\u5904\u7406\u89c4\u5219<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c<code>try<\/code>\u4ee3\u7801\u5757\u548c\u8d44\u6e90<code>close()<\/code>\u65b9\u6cd5<strong>\u540c\u65f6\u629b\u51fa\u5f02\u5e38<\/strong>\uff0c<code>try-with-resources<\/code>\u4f1a\u5c06\u5173\u95ed\u65f6\u7684\u5f02\u5e38\u6807\u8bb0\u4e3a<strong>\u88ab\u6291\u5236\u5f02\u5e38<\/strong>\uff0c\u4e3b\u5f02\u5e38\u4f18\u5148\u629b\u51fa\uff0c\u88ab\u6291\u5236\u5f02\u5e38\u53ef\u901a\u8fc7<code>getSuppressed()<\/code>\u83b7\u53d6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e09\u3001Java \u5f02\u5e38\u5904\u7406\u6700\u4f73\u5b9e\u8df5<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed3\u5408\u65e5\u5e38\u5f00\u53d1\u89c4\u8303\u4e0e\u963f\u91cc Java \u5f00\u53d1\u624b\u518c\uff0c\u6574\u7406\u4e86\u4e00\u5957\u901a\u7528\u7684\u5f02\u5e38\u5904\u7406\u89c4\u8303\uff0c\u89c4\u907f\u5e38\u89c1\u5751\u70b9\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u5c3d\u91cf\u4e0d\u6355\u83b7 RuntimeException<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7a7a\u6307\u9488\u3001\u6570\u7ec4\u8d8a\u754c\u7b49\u8fd0\u884c\u65f6\u5f02\u5e38\uff0c\u4e0d\u8981\u901a\u8fc7<code>catch<\/code>\u6355\u83b7\uff0c\u4f18\u5148\u4f7f\u7528<strong>\u524d\u7f6e\u6821\u9a8c<\/strong>\u89c4\u907f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u274c \u4e0d\u63a8\u8350\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String str = null;\ntry {\n    str.length();\n} catch (NullPointerException e) {\n    e.printStackTrace();\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u2705 \u63a8\u8350\uff08\u524d\u7f6e\u6821\u9a8c\uff09\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>String str = null;\nif (str != null) {\n    str.length();\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u8d44\u6e90\u5173\u95ed\u4f18\u5148\u4f7f\u7528 try-with-resources<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u51e1\u662f\u6d41\u3001\u8fde\u63a5\u7b49\u5b9e\u73b0<code>AutoCloseable<\/code>\u7684\u8d44\u6e90\uff0c\u7edf\u4e00\u4f7f\u7528<code>try-with-resources<\/code>\uff0c\u7981\u6b62\u624b\u52a8\u5728\u4ee3\u7801\u5757\u5185\u5173\u95ed\u8d44\u6e90\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u7981\u6b62\u6355\u83b7 Throwable<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>Throwable<\/code>\u662f<code>Exception<\/code>\u548c<code>Error<\/code>\u7684\u7236\u7c7b\uff0c\u6355\u83b7\u5b83\u4f1a\u62e6\u622a\u7cfb\u7edf\u7ea7\u9519\u8bef\uff0c\u4e25\u91cd\u5f71\u54cd\u7a0b\u5e8f\u7a33\u5b9a\u6027\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u274c \u9519\u8bef\u5199\u6cd5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n    \/\/ \u4e1a\u52a1\u4ee3\u7801\n} catch (Throwable t) {\n    t.printStackTrace();\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">4. \u4e0d\u8981\u5728 finally \u4e2d\u4f7f\u7528 return<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><code>finally<\/code>\u4e00\u5b9a\u4f1a\u6267\u884c\uff0c\u5982\u679c\u5176\u4e2d\u5199<code>return<\/code>\uff0c\u4f1a\u8986\u76d6<code>try<\/code>\u4e2d\u7684\u8fd4\u56de\u503c\uff0c\u9020\u6210\u903b\u8f91\u6df7\u4e71\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u6355\u83b7\u5177\u4f53\u5f02\u5e38\uff0c\u800c\u975e\u76f4\u63a5\u6355\u83b7 Exception<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5927\u8303\u56f4\u6355\u83b7<code>Exception<\/code>\u4f1a\u541e\u6389\u6240\u6709\u5f02\u5e38\uff0c\u4e0d\u5229\u4e8e\u95ee\u9898\u6392\u67e5\uff0c\u7cbe\u51c6\u6355\u83b7\u5bf9\u5e94\u5f02\u5e38\u7c7b\u578b\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u274c \u4e0d\u63a8\u8350\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n    \/\/ IO\u64cd\u4f5c\n} catch (Exception e) {\n    e.printStackTrace();\n}\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u2705 \u63a8\u8350\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>try {\n    \/\/ IO\u64cd\u4f5c\n} catch (IOException e) {\n    e.printStackTrace();\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">6. \u751f\u4ea7\u73af\u5883\u7981\u6b62\u4f7f\u7528 printStackTrace ()<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ebf\u4e0a\u73af\u5883\u5fc5\u987b\u4f7f\u7528\u65e5\u5fd7\u6846\u67b6\uff08SLF4J\u3001Logback\u3001Log4j\uff09\u8bb0\u5f55\u5f02\u5e38\uff0c<code>printStackTrace()<\/code>\u4ec5\u7528\u4e8e\u672c\u5730\u6d4b\u8bd5\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. \u9075\u5faa\u300c\u65e9\u629b\u51fa\u3001\u665a\u6355\u83b7\u300d\u539f\u5219<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f02\u5e38\u5728<strong>\u5e95\u5c42\u4ee3\u7801\u5c3d\u65e9\u629b\u51fa<\/strong>\uff0c\u5728<strong>\u4e0a\u5c42\u7edf\u4e00\u6355\u83b7\u5904\u7406<\/strong>\uff0c\u4fdd\u8bc1\u5f02\u5e38\u4e0a\u4e0b\u6587\u5b8c\u6574\uff0c\u65b9\u4fbf\u5b9a\u4f4d\u95ee\u9898\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. \u7981\u6b62\u7528\u5f02\u5e38\u505a\u6d41\u7a0b\u63a7\u5236<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f02\u5e38\u7684\u8bbe\u8ba1\u521d\u8877\u662f\u5904\u7406\u610f\u5916\u9519\u8bef\uff0c\u4e0d\u80fd\u5f53\u4f5c<code>if\/else<\/code>\u3001\u5faa\u73af\u7b49\u6d41\u7a0b\u5224\u65ad\u5de5\u5177\uff0c\u4f1a\u4e25\u91cd\u964d\u4f4e\u4ee3\u7801\u6027\u80fd\u4e0e\u53ef\u8bfb\u6027\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u56db\u3001\u603b\u7ed3<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><code>try-with-resources<\/code>\u662f Java 7 \u63a8\u51fa\u7684\u8bed\u6cd5\u7cd6\uff0c\u4f9d\u6258<code>AutoCloseable<\/code>\u63a5\u53e3\u5b9e\u73b0\u8d44\u6e90\u81ea\u52a8\u5173\u95ed\uff0c\u7b80\u5316\u4ee3\u7801\u3001\u675c\u7edd\u8d44\u6e90\u6cc4\u6f0f\uff0c<strong>\u6240\u6709\u53ef\u5173\u95ed\u8d44\u6e90\u4f18\u5148\u4f7f\u7528\u8be5\u5199\u6cd5<\/strong>\u3002<\/li>\n\n\n\n<li>\u5f02\u5e38\u5904\u7406\u662f Java \u5f00\u53d1\u7684\u57fa\u7840\u80fd\u529b\uff0c\u4e25\u683c\u9075\u5faa\u5f00\u53d1\u89c4\u8303\uff0c\u62d2\u7edd\u6ee5\u7528\u6355\u83b7\u3001\u541e\u5f02\u5e38\u3001\u4e71\u7528<code>printStackTrace()<\/code>\u7b49\u964b\u4e60\u3002<\/li>\n\n\n\n<li>\u65e5\u5e38\u7f16\u7801\u591a\u6ce8\u610f\u7ec6\u8282\u89c4\u8303\uff0c\u65e2\u80fd\u51cf\u5c11\u7ebf\u4e0a Bug\uff0c\u4e5f\u80fd\u8ba9\u4ee3\u7801\u66f4\u6613\u7ef4\u62a4\u3002<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u5bb6\u597d\uff0c\u4eca\u5929\u7ee7\u7eed\u5206\u4eab Java \u57fa\u7840\u5e72\u8d27\uff0c\u672c\u6b21\u91cd\u70b9\u8bb2\u89e3try-with-resources\u8bed\u6cd5\uff0c\u540c\u65f6\u6574\u7406\u65e5\u5e38\u5f00<\/p>\n<div class=\"more-link\">\n\t\t\t\t <a href=\"https:\/\/yunyanglib.cn\/?p=1547\" class=\"link-btn theme-btn\"><span>Read More <\/span> <i class=\"fa fa-caret-right\"><\/i><\/a>\n\t\t\t<\/div>\n","protected":false},"author":1,"featured_media":1549,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[15],"class_list":["post-1547","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-java","tag-java"],"_links":{"self":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1547","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1547"}],"version-history":[{"count":2,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1547\/revisions"}],"predecessor-version":[{"id":1550,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/posts\/1547\/revisions\/1550"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=\/wp\/v2\/media\/1549"}],"wp:attachment":[{"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yunyanglib.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}