{"id":221448,"date":"2021-07-08T10:57:46","date_gmt":"2021-07-08T02:57:46","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=221448"},"modified":"2021-06-25T09:58:26","modified_gmt":"2021-06-25T01:58:26","slug":"the-role-of-2","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/the-role-of-2.html","title":{"rendered":"Java transient \u7684\u4f5c\u7528\u53ca\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\njava \u7684transient\u5173\u952e\u5b57\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4fbf\u5229\uff0c\u4f60\u53ea\u9700\u8981\u5b9e\u73b0Serilizable\u63a5\u53e3\uff0c\u5c06\u4e0d\u9700\u8981\u5e8f\u5217\u5316\u7684\u5c5e\u6027\u524d\u6dfb\u52a0\u5173\u952e\u5b57transient\uff0c\u5e8f\u5217\u5316\u5bf9\u8c61\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u5c5e\u6027\u5c31\u4e0d\u4f1a\u5e8f\u5217\u5316\u5230\u6307\u5b9a\u7684\u76ee\u7684\u5730\u4e2d\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

transient\u7684\u4f5c\u7528\u53ca\u4f7f\u7528\u65b9\u6cd5<\/strong><\/div>\n

\u6211\u4eec\u90fd\u77e5\u9053\u4e00\u4e2a\u5bf9\u8c61\u53ea\u8981\u5b9e\u73b0\u4e86Serilizable\u63a5\u53e3\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u5c31\u53ef\u4ee5\u88ab\u5e8f\u5217\u5316\uff0cjava\u7684\u8fd9\u79cd\u5e8f\u5217\u5316\u6a21\u5f0f\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u5f88\u591a\u4fbf\u5229\uff0c\u6211\u4eec\u53ef\u4ee5\u4e0d\u5fc5\u5173\u7cfb\u5177\u4f53\u5e8f\u5217\u5316\u7684\u8fc7\u7a0b\uff0c\u53ea\u8981\u8fd9\u4e2a\u7c7b\u5b9e\u73b0\u4e86Serilizable\u63a5\u53e3\uff0c\u8fd9\u4e2a\u7c7b\u7684\u6240\u6709\u5c5e\u6027\u548c\u65b9\u6cd5\u90fd\u4f1a\u81ea\u52a8\u5e8f\u5217\u5316\u3002<\/p>\n

\u7136\u800c\u5728\u5b9e\u9645\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u5e38\u5e38\u4f1a\u9047\u5230\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u8fd9\u4e2a\u7c7b\u7684\u6709\u4e9b\u5c5e\u6027\u9700\u8981\u5e8f\u5217\u5316\uff0c\u800c\u5176\u4ed6\u5c5e\u6027\u4e0d\u9700\u8981\u88ab\u5e8f\u5217\u5316\uff0c\u6253\u4e2a\u6bd4\u65b9\uff0c\u5982\u679c\u4e00\u4e2a\u7528\u6237\u6709\u4e00\u4e9b\u654f\u611f\u4fe1\u606f\uff08\u5982\u5bc6\u7801\uff0c\u94f6\u884c\u5361\u53f7\u7b49\uff09\uff0c\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u4e0d\u5e0c\u671b\u5728\u7f51\u7edc\u64cd\u4f5c\uff08\u4e3b\u8981\u6d89\u53ca\u5230\u5e8f\u5217\u5316\u64cd\u4f5c\uff0c\u672c\u5730\u5e8f\u5217\u5316\u7f13\u5b58\u4e5f\u9002\u7528\uff09\u4e2d\u88ab\u4f20\u8f93\uff0c\u8fd9\u4e9b\u4fe1\u606f\u5bf9\u5e94\u7684\u53d8\u91cf\u5c31\u53ef\u4ee5\u52a0\u4e0atransient\u5173\u952e\u5b57\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u8fd9\u4e2a\u5b57\u6bb5\u7684\u751f\u547d\u5468\u671f\u4ec5\u5b58\u4e8e\u8c03\u7528\u8005\u7684\u5185\u5b58\u4e2d\u800c\u4e0d\u4f1a\u5199\u5230\u78c1\u76d8\u91cc\u6301\u4e45\u5316\u3002<\/p>\n

\u603b\u4e4b\uff0cjava \u7684transient\u5173\u952e\u5b57\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4fbf\u5229\uff0c\u4f60\u53ea\u9700\u8981\u5b9e\u73b0Serilizable\u63a5\u53e3\uff0c\u5c06\u4e0d\u9700\u8981\u5e8f\u5217\u5316\u7684\u5c5e\u6027\u524d\u6dfb\u52a0\u5173\u952e\u5b57transient\uff0c\u5e8f\u5217\u5316\u5bf9\u8c61\u7684\u65f6\u5019\uff0c\u8fd9\u4e2a\u5c5e\u6027\u5c31\u4e0d\u4f1a\u5e8f\u5217\u5316\u5230\u6307\u5b9a\u7684\u76ee\u7684\u5730\u4e2d\u3002<\/p>\n

\u5b9e\u4f8b<\/strong><\/p>\n

import java.io.FileInputStream;\r\nimport java.io.FileNotFoundException;\r\nimport java.io.FileOutputStream;\r\nimport java.io.IOException;\r\nimport java.io.ObjectInputStream;\r\nimport java.io.ObjectOutputStream;\r\nimport java.io.Serializable;\r\n \r\n\/**\r\n * @description \u4f7f\u7528transient\u5173\u952e\u5b57\u4e0d\u5e8f\u5217\u5316\u67d0\u4e2a\u53d8\u91cf\r\n *        \u6ce8\u610f\u8bfb\u53d6\u7684\u65f6\u5019\uff0c\u8bfb\u53d6\u6570\u636e\u7684\u987a\u5e8f\u4e00\u5b9a\u8981\u548c\u5b58\u653e\u6570\u636e\u7684\u987a\u5e8f\u4fdd\u6301\u4e00\u81f4\r\n *        \r\n * @author Alexia\r\n * @date  2013-10-15\r\n *\/\r\npublic class TransientTest {\r\n    \r\n    public static void main(String[] args) {\r\n        \r\n        User user = new User();\r\n        user.setUsername(\"Alexia\");\r\n        user.setPasswd(\"123456\");\r\n        \r\n        System.out.println(\"read before Serializable: \");\r\n        System.out.println(\"username: \" + user.getUsername());\r\n        System.err.println(\"password: \" + user.getPasswd());\r\n        \r\n        try {\r\n            ObjectOutputStream os = new ObjectOutputStream(\r\n                    new FileOutputStream(\"C:\/user.txt\"));\r\n            os.writeObject(user); \/\/ \u5c06User\u5bf9\u8c61\u5199\u8fdb\u6587\u4ef6\r\n            os.flush();\r\n            os.close();\r\n        } catch (FileNotFoundException e) {\r\n            e.printStackTrace();\r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        }\r\n        try {\r\n            ObjectInputStream is = new ObjectInputStream(new FileInputStream(\r\n                    \"C:\/user.txt\"));\r\n            user = (User) is.readObject(); \/\/ \u4ece\u6d41\u4e2d\u8bfb\u53d6User\u7684\u6570\u636e\r\n            is.close();\r\n            \r\n            System.out.println(\"\\nread after Serializable: \");\r\n            System.out.println(\"username: \" + user.getUsername());\r\n            System.err.println(\"password: \" + user.getPasswd());\r\n            \r\n        } catch (FileNotFoundException e) {\r\n            e.printStackTrace();\r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        } catch (ClassNotFoundException e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n}\r\n \r\nclass User implements Serializable {\r\n    private static final long serialVersionUID = 8294180014912103005L;  \r\n    \r\n    private String username;\r\n    private transient String passwd;\r\n    \r\n    public String getUsername() {\r\n        return username;\r\n    }\r\n    \r\n    public void setUsername(String username) {\r\n        this.username = username;\r\n    }\r\n    \r\n    public String getPasswd() {\r\n        return passwd;\r\n    }\r\n    \r\n    public void setPasswd(String passwd) {\r\n        this.passwd = passwd;\r\n    }\r\n \r\n}<\/pre>\n

\u8f93\u51fa\u4e3a\uff1a<\/p>\n

read before Serializable: \r\nusername: Alexia\r\npassword: 123456\r\n\r\nread after Serializable: \r\nusername: Alexia\r\npassword: null\r\n\u5bc6\u7801\u5b57\u6bb5\u4e3a null\uff0c\u8bf4\u660e\u53cd\u5e8f\u5217\u5316\u65f6\u6839\u672c\u6ca1\u6709\u4ece\u6587\u4ef6\u4e2d\u83b7\u53d6\u5230\u4fe1\u606f\u3002<\/pre>\n
transient \u4f7f\u7528\u5c0f\u7ed3<\/strong><\/div>\n

1\uff09\u4e00\u65e6\u53d8\u91cf\u88abtransient\u4fee\u9970\uff0c\u53d8\u91cf\u5c06\u4e0d\u518d\u662f\u5bf9\u8c61\u6301\u4e45\u5316\u7684\u4e00\u90e8\u5206\uff0c\u8be5\u53d8\u91cf\u5185\u5bb9\u5728\u5e8f\u5217\u5316\u540e\u65e0\u6cd5\u83b7\u5f97\u8bbf\u95ee\u3002<\/p>\n

2\uff09transient\u5173\u952e\u5b57\u53ea\u80fd\u4fee\u9970\u53d8\u91cf\uff0c\u800c\u4e0d\u80fd\u4fee\u9970\u65b9\u6cd5\u548c\u7c7b\u3002\u6ce8\u610f\uff0c\u672c\u5730\u53d8\u91cf\u662f\u4e0d\u80fd\u88abtransient\u5173\u952e\u5b57\u4fee\u9970\u7684\u3002\u53d8\u91cf\u5982\u679c\u662f\u7528\u6237\u81ea\u5b9a\u4e49\u7c7b\u53d8\u91cf\uff0c\u5219\u8be5\u7c7b\u9700\u8981\u5b9e\u73b0Serializable\u63a5\u53e3\u3002<\/p>\n

3\uff09\u88abtransient\u5173\u952e\u5b57\u4fee\u9970\u7684\u53d8\u91cf\u4e0d\u518d\u80fd\u88ab\u5e8f\u5217\u5316\uff0c\u4e00\u4e2a\u9759\u6001\u53d8\u91cf\u4e0d\u7ba1\u662f\u5426\u88abtransient\u4fee\u9970\uff0c\u5747\u4e0d\u80fd\u88ab\u5e8f\u5217\u5316\u3002<\/p>\n

\u7b2c\u4e09\u70b9\u53ef\u80fd\u6709\u4e9b\u4eba\u5f88\u8ff7\u60d1\uff0c\u56e0\u4e3a\u53d1\u73b0\u5728User\u7c7b\u4e2d\u7684username\u5b57\u6bb5\u524d\u52a0\u4e0astatic\u5173\u952e\u5b57\u540e\uff0c\u7a0b\u5e8f\u8fd0\u884c\u7ed3\u679c\u4f9d\u7136\u4e0d\u53d8\uff0c\u5373static\u7c7b\u578b\u7684username\u4e5f\u8bfb\u51fa\u6765\u4e3a\"Alexia\"\u4e86\uff0c\u8fd9\u4e0d\u4e0e\u7b2c\u4e09\u70b9\u8bf4\u7684\u77db\u76fe\u5417\uff1f\u5b9e\u9645\u4e0a\u662f\u8fd9\u6837\u7684\uff1a\u7b2c\u4e09\u70b9\u786e\u5b9e\u6ca1\u9519\uff08\u4e00\u4e2a\u9759\u6001\u53d8\u91cf\u4e0d\u7ba1\u662f\u5426\u88abtransient\u4fee\u9970\uff0c\u5747\u4e0d\u80fd\u88ab\u5e8f\u5217\u5316\uff09\uff0c\u53cd\u5e8f\u5217\u5316\u540e\u7c7b\u4e2dstatic\u578b\u53d8\u91cfusername\u7684\u503c\u4e3a\u5f53\u524dJVM\u4e2d\u5bf9\u5e94static\u53d8\u91cf\u7684\u503c\uff0c\u8fd9\u4e2a\u503c\u662fJVM\u4e2d\u7684\u4e0d\u662f\u53cd\u5e8f\u5217\u5316\u5f97\u51fa\u7684\uff0c\u4e0d\u76f8\u4fe1\uff1f\u597d\u5427\uff0c\u4e0b\u9762\u6211\u6765\u8bc1\u660e\uff1a<\/p>\n

\u5b9e\u4f8b<\/strong><\/p>\n

import java.io.FileInputStream;\r\nimport java.io.FileNotFoundException;\r\nimport java.io.FileOutputStream;\r\nimport java.io.IOException;\r\nimport java.io.ObjectInputStream;\r\nimport java.io.ObjectOutputStream;\r\nimport java.io.Serializable;\r\n \r\n\/**\r\n * @description \u4f7f\u7528transient\u5173\u952e\u5b57\u4e0d\u5e8f\u5217\u5316\u67d0\u4e2a\u53d8\u91cf\r\n *        \u6ce8\u610f\u8bfb\u53d6\u7684\u65f6\u5019\uff0c\u8bfb\u53d6\u6570\u636e\u7684\u987a\u5e8f\u4e00\u5b9a\u8981\u548c\u5b58\u653e\u6570\u636e\u7684\u987a\u5e8f\u4fdd\u6301\u4e00\u81f4\r\n *        \r\n * @author Alexia\r\n * @date  2013-10-15\r\n *\/\r\npublic class TransientTest {\r\n    \r\n    public static void main(String[] args) {\r\n        \r\n        User user = new User();\r\n        user.setUsername(\"Alexia\");\r\n        user.setPasswd(\"123456\");\r\n        \r\n        System.out.println(\"read before Serializable: \");\r\n        System.out.println(\"username: \" + user.getUsername());\r\n        System.err.println(\"password: \" + user.getPasswd());\r\n        \r\n        try {\r\n            ObjectOutputStream os = new ObjectOutputStream(\r\n                    new FileOutputStream(\"C:\/user.txt\"));\r\n            os.writeObject(user); \/\/ \u5c06User\u5bf9\u8c61\u5199\u8fdb\u6587\u4ef6\r\n            os.flush();\r\n            os.close();\r\n        } catch (FileNotFoundException e) {\r\n            e.printStackTrace();\r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        }\r\n        try {\r\n            \/\/ \u5728\u53cd\u5e8f\u5217\u5316\u4e4b\u524d\u6539\u53d8username\u7684\u503c\r\n            User.username = \"jmwang\";\r\n            \r\n            ObjectInputStream is = new ObjectInputStream(new FileInputStream(\r\n                    \"C:\/user.txt\"));\r\n            user = (User) is.readObject(); \/\/ \u4ece\u6d41\u4e2d\u8bfb\u53d6User\u7684\u6570\u636e\r\n            is.close();\r\n            \r\n            System.out.println(\"\\nread after Serializable: \");\r\n            System.out.println(\"username: \" + user.getUsername());\r\n            System.err.println(\"password: \" + user.getPasswd());\r\n            \r\n        } catch (FileNotFoundException e) {\r\n            e.printStackTrace();\r\n        } catch (IOException e) {\r\n            e.printStackTrace();\r\n        } catch (ClassNotFoundException e) {\r\n            e.printStackTrace();\r\n        }\r\n    }\r\n}\r\n \r\nclass User implements Serializable {\r\n    private static final long serialVersionUID = 8294180014912103005L;  \r\n    \r\n    public static String username;\r\n    private transient String passwd;\r\n    \r\n    public String getUsername() {\r\n        return username;\r\n    }\r\n    \r\n    public void setUsername(String username) {\r\n        this.username = username;\r\n    }\r\n    \r\n    public String getPasswd() {\r\n        return passwd;\r\n    }\r\n    \r\n    public void setPasswd(String passwd) {\r\n        this.passwd = passwd;\r\n    }\r\n \r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\u4e3a\uff1a<\/p>\n

read before Serializable: \r\nusername: Alexia\r\npassword: 123456\r\n\r\nread after Serializable: \r\nusername: jmwang\r\npassword: null<\/pre>\n

\u8fd9\u8bf4\u660e\u53cd\u5e8f\u5217\u5316\u540e\u7c7b\u4e2dstatic\u578b\u53d8\u91cfusername\u7684\u503c\u4e3a\u5f53\u524dJVM\u4e2d\u5bf9\u5e94static\u53d8\u91cf\u7684\u503c\uff0c\u4e3a\u4fee\u6539\u540ejmwang\uff0c\u800c\u4e0d\u662f\u5e8f\u5217\u5316\u65f6\u7684\u503cAlexia\u3002<\/p>\n

transient\u4f7f\u7528\u7ec6\u8282\u2014\u2014\u88abtransient\u5173\u952e\u5b57\u4fee\u9970\u7684\u53d8\u91cf\u771f\u7684\u4e0d\u80fd\u88ab\u5e8f\u5217\u5316\u5417\uff1f<\/strong><\/div>\n

\u601d\u8003\u4e0b\u9762\u7684\u4f8b\u5b50\uff1a<\/p>\n

\u5b9e\u4f8b<\/strong><\/p>\n

import java.io.Externalizable;\r\nimport java.io.File;\r\nimport java.io.FileInputStream;\r\nimport java.io.FileOutputStream;\r\nimport java.io.IOException;\r\nimport java.io.ObjectInput;\r\nimport java.io.ObjectInputStream;\r\nimport java.io.ObjectOutput;\r\nimport java.io.ObjectOutputStream;\r\n \r\n\/**\r\n * @descripiton Externalizable\u63a5\u53e3\u7684\u4f7f\u7528\r\n * \r\n * @author Alexia\r\n * @date 2013-10-15\r\n *\r\n *\/\r\npublic class ExternalizableTest implements Externalizable {\r\n \r\n    private transient String content = \"\u662f\u7684\uff0c\u6211\u5c06\u4f1a\u88ab\u5e8f\u5217\u5316\uff0c\u4e0d\u7ba1\u6211\u662f\u5426\u88abtransient\u5173\u952e\u5b57\u4fee\u9970\";\r\n \r\n    @Override\r\n    public void writeExternal(ObjectOutput out) throws IOException {\r\n        out.writeObject(content);\r\n    }\r\n \r\n    @Override\r\n    public void readExternal(ObjectInput in) throws IOException,\r\n            ClassNotFoundException {\r\n        content = (String) in.readObject();\r\n    }\r\n \r\n    public static void main(String[] args) throws Exception {\r\n        \r\n        ExternalizableTest et = new ExternalizableTest();\r\n        ObjectOutput out = new ObjectOutputStream(new FileOutputStream(\r\n                new File(\"test\")));\r\n        out.writeObject(et);\r\n \r\n        ObjectInput in = new ObjectInputStream(new FileInputStream(new File(\r\n                \"test\")));\r\n        et = (ExternalizableTest) in.readObject();\r\n        System.out.println(et.content);\r\n \r\n        out.close();\r\n        in.close();\r\n    }\r\n}<\/pre>\n

content\u53d8\u91cf\u4f1a\u88ab\u5e8f\u5217\u5316\u5417\uff1f\u597d\u5427\uff0c\u6211\u628a\u7b54\u6848\u90fd\u8f93\u51fa\u6765\u4e86\uff0c\u662f\u7684\uff0c\u8fd0\u884c\u7ed3\u679c\u5c31\u662f\uff1a<\/p>\n

\u662f\u7684\uff0c\u6211\u5c06\u4f1a\u88ab\u5e8f\u5217\u5316\uff0c\u4e0d\u7ba1\u6211\u662f\u5426\u88abtransient\u5173\u952e\u5b57\u4fee\u9970<\/pre>\n

\u8fd9\u662f\u4e3a\u4ec0\u4e48\u5462\uff0c\u4e0d\u662f\u8bf4\u7c7b\u7684\u53d8\u91cf\u88abtransient\u5173\u952e\u5b57\u4fee\u9970\u4ee5\u540e\u5c06\u4e0d\u80fd\u5e8f\u5217\u5316\u4e86\u5417\uff1f<\/p>\n

\u6211\u4eec\u77e5\u9053\u5728Java\u4e2d\uff0c\u5bf9\u8c61\u7684\u5e8f\u5217\u5316\u53ef\u4ee5\u901a\u8fc7\u5b9e\u73b0\u4e24\u79cd\u63a5\u53e3\u6765\u5b9e\u73b0\uff0c\u82e5\u5b9e\u73b0\u7684\u662fSerializable\u63a5\u53e3\uff0c\u5219\u6240\u6709\u7684\u5e8f\u5217\u5316\u5c06\u4f1a\u81ea\u52a8\u8fdb\u884c\uff0c\u82e5\u5b9e\u73b0\u7684\u662fExternalizable\u63a5\u53e3\uff0c\u5219\u6ca1\u6709\u4efb\u4f55\u4e1c\u897f\u53ef\u4ee5\u81ea\u52a8\u5e8f\u5217\u5316\uff0c\u9700\u8981\u5728writeExternal\u65b9\u6cd5\u4e2d\u8fdb\u884c\u624b\u5de5\u6307\u5b9a\u6240\u8981\u5e8f\u5217\u5316\u7684\u53d8\u91cf\uff0c\u8fd9\u4e0e\u662f\u5426\u88abtransient\u4fee\u9970\u65e0\u5173\u3002\u56e0\u6b64\u7b2c\u4e8c\u4e2a\u4f8b\u5b50\u8f93\u51fa\u7684\u662f\u53d8\u91cfcontent\u521d\u59cb\u5316\u7684\u5185\u5bb9\uff0c\u800c\u4e0d\u662fnull\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u6211\u4eec\u90fd\u77e5\u9053\u4e00\u4e2a\u5bf9\u8c61\u53ea\u8981\u5b9e\u73b0\u4e86Serilizable\u63a5\u53e3\uff0c\u8fd9\u4e2a\u5bf9\u8c61\u5c31\u53ef\u4ee5\u88ab\u5e8f\u5217\u5316\uff0cjava\u7684\u8fd9\u79cd\u5e8f\u5217\u5316\u6a21\u5f0f\u4e3a\u5f00\u53d1 […]<\/p>\n","protected":false},"author":1481,"featured_media":221452,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-221448","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/221448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=221448"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/221448\/revisions"}],"predecessor-version":[{"id":221453,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/221448\/revisions\/221453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/221452"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=221448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=221448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=221448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}