{"id":297214,"date":"2024-05-20T16:21:29","date_gmt":"2024-05-20T08:21:29","guid":{"rendered":""},"modified":"2024-05-20T16:21:52","modified_gmt":"2024-05-20T08:21:52","slug":"apache-log4j2%e6%98%af%e4%bb%80%e4%b9%88-%e6%80%8e%e4%b9%88%e7%94%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/297214.html","title":{"rendered":"Apache Log4j2\u662f\u4ec0\u4e48 \u600e\u4e48\u7528"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27144859\/8f5c2206-2a35-467f-bc42-e679fd08c588.webp\" alt=\"Apache Log4j2\u662f\u4ec0\u4e48 \u600e\u4e48\u7528\" \/><\/p>\n<p><p>Apache Log4j2\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u65e5\u5fd7\u6846\u67b6\uff0c\u7528\u4e8e\u5728Java\u5e94\u7528\u7a0b\u5e8f\u4e2d\u63d0\u4f9b\u65e5\u5fd7\u670d\u52a1\u3002<strong>\u5b83\u5177\u6709\u9ad8\u6548\u7387\u3001\u7075\u6d3b\u6027\u548c\u53ef\u914d\u7f6e\u6027<\/strong>\uff0c\u662f\u5f00\u53d1\u4eba\u5458\u7528\u4e8e\u8bca\u65ad\u548c\u8c03\u8bd5\u7a0b\u5e8f\u7684\u91cd\u8981\u5de5\u5177\u3002<strong>Log4j2\u7684\u4e3b\u8981\u7279\u70b9\u5305\u62ec\u652f\u6301\u5f02\u6b65\u65e5\u5fd7\u529f\u80fd<\/strong>\u3001<strong>\u652f\u6301\u591a\u79cd\u65e5\u5fd7\u7ea7\u522b<\/strong>\u3001<strong>\u7075\u6d3b\u7684\u65e5\u5fd7\u914d\u7f6e\u9009\u9879<\/strong>\u4ee5\u53ca<strong>\u9ad8\u6027\u80fd<\/strong>\u3002\u5176\u4e2d\uff0c<strong>\u652f\u6301\u5f02\u6b65\u65e5\u5fd7\u529f\u80fd<\/strong>\u7279\u522b\u503c\u5f97\u8be6\u7ec6\u8bf4\u660e\u3002\u5f02\u6b65\u65e5\u5fd7\u901a\u8fc7\u5c06\u65e5\u5fd7\u6d88\u606f\u63d0\u4ea4\u5230\u961f\u5217\u4e2d\uff0c\u7531\u5355\u72ec\u7684\u7ebf\u7a0b\u8d1f\u8d23\u5904\u7406\u8fd9\u4e9b\u6d88\u606f\u5e76\u5c06\u5176\u5199\u5165\u65e5\u5fd7\u6587\u4ef6\u6216\u5176\u4ed6\u5a92\u4f53\uff0c\u4ece\u800c\u663e\u8457\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\uff0c\u5c24\u5176\u662f\u5728\u9ad8\u5e76\u53d1\u573a\u666f\u4e0b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001LOG4J2\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e<\/h3>\n<\/p>\n<p><p><strong>\u5b89\u88c5Log4j2<\/strong>\u5f88\u7b80\u5355\uff0c\u5982\u679c\u4f60\u7684\u9879\u76ee\u662f\u57fa\u4e8eMaven\u6216Gradle\u7684\uff0c\u4f60\u53ea\u9700\u8981\u5728\u9879\u76ee\u7684<code>pom.xml<\/code>\u6216<code>build.gradle<\/code>\u6587\u4ef6\u4e2d\u6dfb\u52a0Log4j2\u7684\u4f9d\u8d56\u3002\u7136\u540e\uff0cLog4j2\u53ef\u4ee5\u901a\u8fc7XML\u3001JSON\u3001YAML\u6216properties\u6587\u4ef6\u8fdb\u884c\u914d\u7f6e\u3002\u8fd9\u4e9b\u914d\u7f6e\u6587\u4ef6\u53ef\u4ee5\u6307\u5b9a\u65e5\u5fd7\u7ea7\u522b\u3001\u65e5\u5fd7\u76ee\u7684\u5730\uff08\u63a7\u5236\u53f0\u3001\u6587\u4ef6\u3001\u6570\u636e\u5e93\u7b49\uff09\u3001\u65e5\u5fd7\u683c\u5f0f\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u6765\u770b\u4e00\u4e2a\u7b80\u5355\u7684XML\u914d\u7f6e\u793a\u4f8b\uff0c\u5b83\u5b9a\u4e49\u4e86\u4e24\u4e2a\u65e5\u5fd7\u8bb0\u5f55\u5668\uff08\u4e00\u4e2a\u5c06\u65e5\u5fd7\u6253\u5370\u5230\u63a7\u5236\u53f0\uff0c\u53e6\u4e00\u4e2a\u5c06\u65e5\u5fd7\u8bb0\u5f55\u5230\u6587\u4ef6\u4e2d\uff09\uff0c\u5e76\u5206\u522b\u6307\u5b9a\u4e86\u5b83\u4eec\u7684\u65e5\u5fd7\u7ea7\u522b\u548c\u8f93\u51fa\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-xml\">&lt;Configuration status=&quot;WARN&quot;&gt;<\/p>\n<p>  &lt;Appenders&gt;<\/p>\n<p>    &lt;Console name=&quot;Console&quot; target=&quot;SYSTEM_OUT&quot;&gt;<\/p>\n<p>      &lt;PatternLayout pattern=&quot;%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n&quot; \/&gt;<\/p>\n<p>    &lt;\/Console&gt;<\/p>\n<p>    &lt;File name=&quot;LogFile&quot; fileName=&quot;logs\/app.log&quot;&gt;<\/p>\n<p>      &lt;PatternLayout pattern=&quot;%d{yyyy-MM-dd HH:mm:ss} %-5level %class{1} - %msg%n&quot;\/&gt;<\/p>\n<p>    &lt;\/File&gt;<\/p>\n<p>  &lt;\/Appenders&gt;<\/p>\n<p>  &lt;Loggers&gt;<\/p>\n<p>    &lt;Root level=&quot;debug&quot;&gt;<\/p>\n<p>      &lt;AppenderRef ref=&quot;Console&quot; \/&gt;<\/p>\n<p>      &lt;AppenderRef ref=&quot;LogFile&quot; \/&gt;<\/p>\n<p>    &lt;\/Root&gt;<\/p>\n<p>  &lt;\/Loggers&gt;<\/p>\n<p>&lt;\/Configuration&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u914d\u7f6e\u5b9a\u4e49\u4e86\u57fa\u672c\u7684\u65e5\u5fd7\u7ba1\u7406\u7b56\u7565\uff0c\u901a\u8fc7\u4fee\u6539\u8fd9\u4e2a\u914d\u7f6e\uff0c\u53ef\u4ee5\u8f7b\u677e\u8c03\u6574\u65e5\u5fd7\u884c\u4e3a\u6765\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u65e5\u5fd7\u7ea7\u522b\u7684\u7406\u89e3\u4e0e\u8fd0\u7528<\/h3>\n<\/p>\n<p><p>Log4j2\u652f\u6301\u7684\u65e5\u5fd7\u7ea7\u522b\u4ece\u9ad8\u5230\u4f4e\u4f9d\u6b21\u662fOFF\u3001FATAL\u3001ERROR\u3001WARN\u3001INFO\u3001DEBUG\u3001TRACE\u3001ALL\u3002<strong>\u5408\u7406\u5730\u4f7f\u7528\u5404\u79cd\u65e5\u5fd7\u7ea7\u522b<\/strong>\u5bf9\u4e8e\u5f00\u53d1\u548c\u7ef4\u62a4\u9ad8\u8d28\u91cf\u7684\u5e94\u7528\u7a0b\u5e8f\u81f3\u5173\u91cd\u8981\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u8df5\u4e2d\uff0c\u5f00\u53d1\u4eba\u5458\u901a\u5e38\u4f1a\u5728\u5f00\u53d1\u9636\u6bb5\u4f7f\u7528TRACE\u6216DEBUG\u7ea7\u522b\u6765\u83b7\u53d6\u5c3d\u53ef\u80fd\u591a\u7684\u4fe1\u606f\uff0c\u800c\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u5219\u53ef\u80fd\u53ea\u9700\u8981WARN\u6216ERROR\u7ea7\u522b\u7684\u65e5\u5fd7\u3002\u8fd9\u6837\u53ef\u4ee5\u6709\u6548\u5730\u51cf\u5c11\u65e5\u5fd7\u6587\u4ef6\u7684\u5927\u5c0f\uff0c\u540c\u65f6\u786e\u4fdd\u80fd\u591f\u6355\u6349\u5230\u5173\u952e\u4fe1\u606f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5f02\u6b65\u65e5\u5fd7\u7684\u914d\u7f6e\u548c\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u5982\u524d\u6240\u8ff0\uff0c<strong>Log4j2\u652f\u6301\u5f02\u6b65\u65e5\u5fd7\u5904\u7406<\/strong>\uff0c\u8fd9\u5728\u5904\u7406\u6d77\u91cf\u65e5\u5fd7\u6216\u63d0\u9ad8\u5e94\u7528\u6027\u80fd\u65f6\u975e\u5e38\u6709\u7528\u3002\u8981\u542f\u7528\u5f02\u6b65\u65e5\u5fd7\uff0c\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u505a\u76f8\u5e94\u7684\u8bbe\u7f6e\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u542f\u7528\u5f02\u6b65\u65e5\u5fd7\u529f\u80fd\u7684\u7b80\u5355\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-xml\">&lt;Configuration&gt;<\/p>\n<p>  &lt;Appenders&gt;<\/p>\n<p>    &lt;Async name=&quot;Async&quot;&gt;<\/p>\n<p>      &lt;AppenderRef ref=&quot;Console&quot;\/&gt;<\/p>\n<p>    &lt;\/Async&gt;<\/p>\n<p>  &lt;\/Appenders&gt;<\/p>\n<p>  &lt;Loggers&gt;<\/p>\n<p>    &lt;Root level=&quot;info&quot;&gt;<\/p>\n<p>      &lt;AppenderRef ref=&quot;Async&quot;\/&gt;<\/p>\n<p>    &lt;\/Root&gt;<\/p>\n<p>  &lt;\/Loggers&gt;<\/p>\n<p>&lt;\/Configuration&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u914d\u7f6e\u4e2d\uff0c\u6211\u4eec\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a<code>&lt;Async&gt;<\/code>\u8282\u70b9\u5305\u88c5\u4e86\u539f\u6709\u7684\u63a7\u5236\u53f0Appender\uff0c\u4f7f\u5176\u6210\u4e3a\u5f02\u6b65\u7684\u3002\u8fd9\u6837\uff0c\u65e5\u5fd7\u6d88\u606f\u4f1a\u5148\u88ab\u63d0\u4ea4\u5230\u4e00\u4e2a\u961f\u5217\u4e2d\uff0c\u7136\u540e\u7531\u5355\u72ec\u7684\u7ebf\u7a0b\u5f02\u6b65\u5199\u5165\u5230\u76ee\u7684\u5730\uff0c\u663e\u8457\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u65e5\u5fd7\u7684\u9ad8\u7ea7\u7279\u6027\u4e0e\u6280\u5de7<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u57fa\u672c\u7684\u65e5\u5fd7\u8bb0\u5f55\u529f\u80fd\uff0cLog4j2\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u7ea7\u7279\u6027\uff0c\u4f8b\u5982\u65e5\u5fd7\u6eda\u52a8\u548c\u5f52\u6863\u3001\u8fc7\u6ee4\u5668\u3001\u81ea\u5b9a\u4e49\u65e5\u5fd7\u7ea7\u522b\u7b49\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u65e5\u5fd7\u6eda\u52a8\u548c\u5f52\u6863<\/strong>\u53ef\u4ee5\u5e2e\u52a9\u7ba1\u7406\u751f\u6210\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u786e\u4fdd\u5b83\u4eec\u4e0d\u4f1a\u6d88\u8017\u8fc7\u591a\u7684\u78c1\u76d8\u7a7a\u95f4\u3002\u901a\u8fc7\u914d\u7f6e\uff0c\u53ef\u4ee5\u6307\u5b9a\u65e5\u5fd7\u6587\u4ef6\u5728\u8fbe\u5230\u7279\u5b9a\u5927\u5c0f\u6216\u7279\u5b9a\u65f6\u95f4\u540e\u81ea\u52a8\u6eda\u52a8\uff0c\u5e76\u4e14\u53ef\u4ee5\u5c06\u65e7\u6587\u4ef6\u5f52\u6863\u5230\u7279\u5b9a\u4f4d\u7f6e\u3002<\/li>\n<li><strong>\u8fc7\u6ee4\u5668<\/strong>\u529f\u80fd\u5141\u8bb8\u5f00\u53d1\u4eba\u5458\u57fa\u4e8e\u6761\u4ef6\uff08\u5982\u65e5\u5fd7\u7ea7\u522b\u3001\u65e5\u5fd7\u6d88\u606f\u4e2d\u7684\u67d0\u4e9b\u5185\u5bb9\u7b49\uff09\u6765\u63a7\u5236\u54ea\u4e9b\u65e5\u5fd7\u88ab\u8bb0\u5f55\u3002\u8fd9\u4e3a\u7ec6\u7c92\u5ea6\u7684\u65e5\u5fd7\u63a7\u5236\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5de5\u5177\u3002<\/li>\n<li><strong>\u81ea\u5b9a\u4e49\u65e5\u5fd7\u7ea7\u522b<\/strong>\u53ef\u4ee5\u8ba9\u5f00\u53d1\u56e2\u961f\u6839\u636e\u9879\u76ee\u9700\u6c42\u5b9a\u4e49\u9002\u5408\u81ea\u5df1\u7684\u65e5\u5fd7\u7ea7\u522b\uff0c\u7075\u6d3b\u6027\u548c\u53ef\u7528\u6027\u5927\u5927\u63d0\u5347\u3002<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u719f\u7ec3\u4f7f\u7528Log4j2\u7684\u8fd9\u4e9b\u9ad8\u7ea7\u7279\u6027\uff0c\u53ef\u4ee5\u6784\u5efa\u51fa\u5f3a\u5927\u800c\u7075\u6d3b\u7684\u65e5\u5fd7\u7ba1\u7406\u7cfb\u7edf\uff0c\u4e3a\u9879\u76ee\u7684\u5f00\u53d1\u548c\u7ef4\u62a4\u63d0\u4f9b\u575a\u5b9e\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>FAQ 1: \u4ec0\u4e48\u662fApache Log4j2\uff1f<\/strong><\/p>\n<p>Apache Log4j2\u662f\u4e00\u4e2a\u7528\u4e8eJava\u5e94\u7528\u7a0b\u5e8f\u7684\u5f3a\u5927\u65e5\u5fd7\u8bb0\u5f55\u6846\u67b6\u3002\u5b83\u662fApache Log4j\u7684\u540e\u7eed\u7248\u672c\uff0c\u5177\u6709\u66f4\u9ad8\u7684\u6027\u80fd\u548c\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\u5b83\u652f\u6301\u591a\u79cd\u65e5\u5fd7\u7ea7\u522b\u3001\u7075\u6d3b\u7684\u914d\u7f6e\u9009\u9879\u4ee5\u53ca\u5404\u79cd\u65e5\u5fd7\u8f93\u51fa\u76ee\u6807\uff0c\u4f7f\u5f00\u53d1\u4eba\u5458\u80fd\u591f\u65b9\u4fbf\u5730\u8bb0\u5f55\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u60c5\u51b5\u548c\u8c03\u8bd5\u4fe1\u606f\u3002<\/p>\n<p><strong>FAQ 2: \u600e\u4e48\u4f7f\u7528Apache Log4j2\u8bb0\u5f55\u65e5\u5fd7\uff1f<\/strong><\/p>\n<p>\u4f7f\u7528Apache Log4j2\u8bb0\u5f55\u65e5\u5fd7\u975e\u5e38\u7b80\u5355\u3002\u9700\u8981\u505a\u7684\u7b2c\u4e00\u4ef6\u4e8b\u662f\u5728\u4f60\u7684Java\u5e94\u7528\u7a0b\u5e8f\u4e2d\u6dfb\u52a0Log4j2\u7684\u4f9d\u8d56\u3002\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u544a\u8bc9Log4j2\u5e94\u8be5\u5982\u4f55\u8bb0\u5f55\u65e5\u5fd7\u3002\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a\u65e5\u5fd7\u8f93\u51fa\u76ee\u6807\uff08\u5982\u63a7\u5236\u53f0\u3001\u6587\u4ef6\u3001\u6570\u636e\u5e93\u7b49\uff09\u3001\u65e5\u5fd7\u7ea7\u522b\u3001\u65e5\u5fd7\u683c\u5f0f\u7b49\u53c2\u6570\u3002\u6700\u540e\uff0c\u5728\u4f60\u7684\u4ee3\u7801\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528Log4j2\u7684API\u6765\u8bb0\u5f55\u65e5\u5fd7\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u6765\u8bb0\u5f55\u4e00\u4e2a\u4fe1\u606f\u65e5\u5fd7\uff1a<\/p>\n<pre><code class=\"language-java\">import org.apache.logging.log4j.LogManager;\nimport org.apache.logging.log4j.Logger;\n\npublic class MyApp {\n    private static final Logger logger = LogManager.getLogger(MyApp.class);\n\n    public static void m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n(String[] args) {\n        logger.info(&quot;\u8fd9\u662f\u4e00\u4e2a\u4fe1\u606f\u65e5\u5fd7&quot;);\n    }\n}\n<\/code><\/pre>\n<p><strong>FAQ 3: Apache Log4j2\u4e0e\u5176\u4ed6\u65e5\u5fd7\u6846\u67b6\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f<\/strong><\/p>\n<p>\u4e0e\u5176\u4ed6\u65e5\u5fd7\u6846\u67b6\u76f8\u6bd4\uff0cApache Log4j2\u5177\u6709\u51e0\u4e2a\u663e\u8457\u7684\u4f18\u70b9\u3002\u9996\u5148\uff0c\u5b83\u5177\u6709\u8f83\u9ad8\u7684\u6027\u80fd\uff0c\u80fd\u591f\u5904\u7406\u5927\u91cf\u7684\u65e5\u5fd7\u6d88\u606f\u800c\u4e0d\u4f1a\u5bf9\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u4ea7\u751f\u660e\u663e\u5f71\u54cd\u3002\u5176\u6b21\uff0c\u5b83\u652f\u6301\u5f02\u6b65\u65e5\u5fd7\u8bb0\u5f55\uff0c\u53ef\u4ee5\u5728\u540e\u53f0\u7ebf\u7a0b\u4e2d\u5904\u7406\u65e5\u5fd7\u6d88\u606f\uff0c\u4f7f\u5f97\u5e94\u7528\u7a0b\u5e8f\u7684\u54cd\u5e94\u901f\u5ea6\u66f4\u5feb\u3002\u6b64\u5916\uff0cLog4j2\u5177\u6709\u4e30\u5bcc\u7684\u914d\u7f6e\u9009\u9879\u548c\u5f3a\u5927\u7684\u63d2\u4ef6\u7cfb\u7edf\uff0c\u53ef\u4ee5\u6ee1\u8db3\u5404\u79cd\u65e5\u5fd7\u8bb0\u5f55\u9700\u6c42\u3002\u603b\u7684\u6765\u8bf4\uff0cApache Log4j2\u662f\u4e00\u4e2a\u5f3a\u5927\u3001\u7075\u6d3b\u4e14\u6027\u80fd\u4f18\u8d8a\u7684\u65e5\u5fd7\u8bb0\u5f55\u6846\u67b6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Apache Log4j2\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u65e5\u5fd7\u6846\u67b6\uff0c\u7528\u4e8e\u5728Java\u5e94\u7528\u7a0b\u5e8f\u4e2d\u63d0\u4f9b\u65e5\u5fd7\u670d\u52a1\u3002\u5b83\u5177\u6709\u9ad8\u6548\u7387\u3001\u7075\u6d3b\u6027\u548c\u53ef [&hellip;]","protected":false},"author":3,"featured_media":297239,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/297214"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=297214"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/297214\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/297239"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=297214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=297214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=297214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}