{"id":294896,"date":"2024-05-20T15:21:41","date_gmt":"2024-05-20T07:21:41","guid":{"rendered":""},"modified":"2024-05-20T15:21:52","modified_gmt":"2024-05-20T07:21:52","slug":"java-%e4%b8%ad%e5%a6%82%e4%bd%95%e6%95%b4%e5%90%88-activemq","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/294896.html","title":{"rendered":"java \u4e2d\u5982\u4f55\u6574\u5408 Activemq"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27141954\/f71f05be-c5e8-4a68-858f-6911a5dcfc15.webp\" alt=\"java \u4e2d\u5982\u4f55\u6574\u5408 Activemq\" \/><\/p>\n<p><p>\u5728Java\u5f00\u53d1\u4e2d\uff0c\u6574\u5408ActiveMQ\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u505a\u6cd5\uff0c\u7528\u4e8e\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u529f\u80fd\uff0c\u4ece\u800c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u89e3\u8026\u6027\u3001\u6269\u5c55\u6027\u548c\u53ef\u9760\u6027\u3002<strong>\u6574\u5408ActiveMQ\u4e3b\u8981\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\uff1a\u914d\u7f6eActiveMQ\u670d\u52a1\u5668\u3001\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0ActiveMQ\u4f9d\u8d56\u3001\u914d\u7f6e\u6d88\u606f\u751f\u4ea7\u8005\u548c\u6d88\u8d39\u8005<\/strong>\u3002\u5728\u8fd9\u4e9b\u4e2d\uff0c\u914d\u7f6eActiveMQ\u670d\u52a1\u5668\u662f\u57fa\u7840\u4e5f\u662f\u5173\u952e\uff0c\u56e0\u4e3a\u65e0\u8bba\u662f\u6d88\u606f\u7684\u53d1\u9001\u8fd8\u662f\u63a5\u6536\uff0c\u90fd\u9700\u8981\u901a\u8fc7ActiveMQ\u670d\u52a1\u5668\u6765\u8fdb\u884c\u3002<\/p>\n<\/p>\n<p><p>\u914d\u7f6eActiveMQ\u670d\u52a1\u5668\u901a\u5e38\u6d89\u53ca\u5230\u4e0b\u8f7dActiveMQ\uff0c\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\uff0c\u4ee5\u53ca\u542f\u52a8\u670d\u52a1\u5668\u3002<strong>\u9996\u5148\u9700\u8981\u4eceActiveMQ\u5b98\u7f51\u4e0b\u8f7d\u9002\u5408\u81ea\u5df1\u64cd\u4f5c\u7cfb\u7edf\u7684ActiveMQ\u53d1\u884c\u7248<\/strong>\uff0c\u7136\u540e\u89e3\u538b\u3002\u63a5\u7740\uff0c\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539<code>conf<\/code>\u76ee\u5f55\u4e0b\u7684<code>activemq.xml<\/code>\u6587\u4ef6\u6765\u81ea\u5b9a\u4e49\u914d\u7f6e\uff0c\u6bd4\u5982\u8bbe\u7f6e\u76d1\u542c\u7aef\u53e3\u3001\u6301\u4e45\u5316\u5b58\u50a8\u65b9\u5f0f\u7b49\u3002\u6700\u540e\uff0c\u901a\u8fc7\u8fd0\u884c<code>bin<\/code>\u76ee\u5f55\u4e0b\u7684<code>activemq<\/code>\u811a\u672c\uff08\u5728Windows\u4e0b\u662f<code>activemq.bat<\/code>\uff0c\u5728Linux\u4e0b\u662f<code>activemq<\/code>\uff09\u6765\u542f\u52a8ActiveMQ\u670d\u52a1\u5668\u3002\u542f\u52a8\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbf\u95ee\u7ba1\u7406\u754c\u9762\uff08\u9ed8\u8ba4\u662f<a href=\"http:\/\/localhost:8161\/admin%EF%BC%89%E6%9D%A5%E8%BF%9B%E8%A1%8C%E7%9B%91%E6%8E%A7%E5%92%8C%E7%AE%A1%E7%90%86%E3%80%82\">http:\/\/localhost:8161\/admin\uff09\u6765\u8fdb\u884c\u76d1\u63a7\u548c\u7ba1\u7406\u3002<\/a><\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u914d\u7f6eACTIVEMQ\u670d\u52a1\u5668<\/h2>\n<\/p>\n<p><p>\u5728\u6574\u5408ActiveMQ\u4e4b\u524d\uff0c\u7b2c\u4e00\u6b65\u662f\u9700\u8981\u914d\u7f6e\u597dActiveMQ\u670d\u52a1\u5668\u3002\u8fd9\u5305\u62ec\u4e0b\u8f7d\u9002\u5408\u7684ActiveMQ\u7248\u672c\u3001\u89e3\u538b\u5e76\u8fdb\u884c\u76f8\u5e94\u7684\u914d\u7f6e\u3002<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5e76\u89e3\u538b\u540e\uff0c\u4e3a\u4e86\u63d0\u9ad8\u6d88\u606f\u5904\u7406\u7684\u6548\u7387\u548c\u5b89\u5168\u6027\uff0c\u901a\u5e38\u9700\u8981\u4fee\u6539<code>conf\/activemq.xml<\/code>\u914d\u7f6e\u6587\u4ef6\u3002\u6bd4\u5982\uff0c\u53ef\u4ee5\u914d\u7f6e\u6d88\u606f\u961f\u5217\u7684\u6301\u4e45\u5316\u5b58\u50a8\u65b9\u5f0f\uff0c\u4ee5\u652f\u6301\u672a\u88ab\u5373\u65f6\u6d88\u8d39\u7684\u6d88\u606f\u80fd\u591f\u88ab\u4fdd\u5b58\uff0c\u4fdd\u8bc1\u6d88\u606f\u4e0d\u4f1a\u56e0\u4e3a\u7cfb\u7edf\u6545\u969c\u800c\u4e22\u5931\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u8be5\u914d\u7f6e\u6587\u4ef6\u6765\u8bbe\u5b9a\u4e0d\u540c\u7684\u76d1\u542c\u7aef\u53e3\uff0c\u4ee5\u4fbf\u5728\u4e0d\u540c\u7684\u73af\u5883\u4e0b\u8fd0\u884cActiveMQ\u670d\u52a1\uff0c\u907f\u514d\u7aef\u53e3\u51b2\u7a81\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0ACTIVEMQ\u4f9d\u8d56<\/h2>\n<\/p>\n<p><p>\u65e0\u8bba\u662f\u4f20\u7edf\u7684Java\u9879\u76ee\u8fd8\u662f\u57fa\u4e8eSpring\u6846\u67b6\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u8981\u4f7f\u7528ActiveMQ\u9996\u5148\u9700\u8981\u5728\u9879\u76ee\u7684\u4f9d\u8d56\u6587\u4ef6\u4e2d\u6dfb\u52a0ActiveMQ\u7684\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eMaven\u9879\u76ee\u6765\u8bf4\uff0c\u53ea\u9700\u5728<code>pom.xml<\/code>\u6587\u4ef6\u4e2d\u6dfb\u52a0ActiveMQ\u7684\u4f9d\u8d56\u914d\u7f6e\u3002\u8fd9\u4f7f\u5f97\u5728\u9879\u76ee\u6784\u5efa\u8fc7\u7a0b\u4e2d\uff0cMaven\u4f1a\u81ea\u52a8\u4ece\u4e2d\u592e\u4ed3\u5e93\u4e0b\u8f7d\u6240\u9700\u7684ActiveMQ\u76f8\u5173jar\u5305\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-xml\">&lt;dependency&gt;<\/p>\n<p>    &lt;groupId&gt;org.apache.activemq&lt;\/groupId&gt;<\/p>\n<p>    &lt;artifactId&gt;activemq-spring-boot-starter&lt;\/artifactId&gt;<\/p>\n<p>    &lt;version&gt;\u7248\u672c\u53f7&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e00\u6b65\u786e\u4fdd\u4e86\u9879\u76ee\u5728\u7f16\u8bd1\u548c\u8fd0\u884c\u65f6\u53ef\u4ee5\u627e\u5230\u4e0eActiveMQ\u76f8\u5173\u7684\u7c7b\u548c\u65b9\u6cd5\uff0c\u65b9\u4fbf\u5f00\u53d1\u8005\u8c03\u7528API\u8fdb\u884c\u6d88\u606f\u7684\u53d1\u9001\u548c\u63a5\u6536\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u914d\u7f6e\u6d88\u606f\u751f\u4ea7\u8005<\/h2>\n<\/p>\n<p><p>\u6d88\u606f\u751f\u4ea7\u8005\u7684\u914d\u7f6e\u4e3b\u8981\u6d89\u53ca\u5230\u5b9a\u4e49\u548c\u914d\u7f6eJMS\u6a21\u677f\uff08JmsTemplate\uff09\u3001\u8fde\u63a5\u5de5\u5382\uff08ConnectionFactory\uff09\u4ee5\u53ca\u76ee\u6807\u76ee\u7684\u5730\uff08Destination\uff09\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u914d\u7f6e\u4e00\u4e2a\u8fde\u63a5\u5de5\u5382\uff0c\u6b64\u5904\u53ef\u4ee5\u4f7f\u7528ActiveMQ\u63d0\u4f9b\u7684<code>ActiveMQConnectionFactory<\/code>\uff0c\u5e76\u914d\u7f6e\u597d\u76f8\u5e94\u7684\u670d\u52a1\u5730\u5740\uff08brokerURL\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">@Bean<\/p>\n<p>public ActiveMQConnectionFactory connectionFactory() {<\/p>\n<p>    ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();<\/p>\n<p>    connectionFactory.setBrokerURL(&quot;tcp:\/\/localhost:61616&quot;);<\/p>\n<p>    return connectionFactory;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u968f\u540e\uff0c\u5229\u7528\u8fde\u63a5\u5de5\u5382\u914d\u7f6e\u4e00\u4e2aJMS\u6a21\u677f\uff0cJMS\u6a21\u677f\u7528\u4e8e\u7b80\u5316\u6d88\u606f\u53d1\u9001\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">@Bean<\/p>\n<p>public JmsTemplate jmsTemplate(ActiveMQConnectionFactory connectionFactory) {<\/p>\n<p>    JmsTemplate template = new JmsTemplate();<\/p>\n<p>    template.setConnectionFactory(connectionFactory);<\/p>\n<p>    return template;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e4b\u540e\uff0c\u5c31\u53ef\u4ee5\u5728\u5e94\u7528\u7a0b\u5e8f\u4e2d\u901a\u8fc7\u6ce8\u5165<code>JmsTemplate<\/code>\u6765\u53d1\u9001\u6d88\u606f\u4e86\u3002<\/p>\n<\/p>\n<p><h2>\u56db\u3001\u914d\u7f6e\u6d88\u606f\u6d88\u8d39\u8005<\/h2>\n<\/p>\n<p><p>\u6d88\u606f\u6d88\u8d39\u8005\u7684\u914d\u7f6e\u4e3b\u8981\u6d89\u53ca\u76d1\u542c\u5668\u7684\u8bbe\u7f6e\u3002\u901a\u5e38\uff0c\u6211\u4eec\u4f7f\u7528<code>@JmsListener<\/code>\u6ce8\u89e3\u6765\u6807\u6ce8\u4e00\u4e2a\u65b9\u6cd5\uff0c\u4f7f\u5176\u80fd\u591f\u76d1\u542c\u7279\u5b9aDestination\u7684\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u5728\u914d\u7f6e\u7c7b\u4e0a\u4f7f\u7528<code>@EnableJms<\/code>\u5f00\u542fJMS\u6ce8\u89e3\u652f\u6301\u3002\u7136\u540e\uff0c\u5b9a\u4e49\u4e00\u4e2a\u6d88\u606f\u76d1\u542c\u5668\uff0c\u4f7f\u7528<code>@JmsListener<\/code>\u6307\u5b9a\u76d1\u542c\u7684\u961f\u5217\u540d\u79f0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">@EnableJms<\/p>\n<p>public class AppConfig {<\/p>\n<p>    @JmsListener(destination = &quot;test.queue&quot;)<\/p>\n<p>    public void receiveMessage(String text) {<\/p>\n<p>        System.out.println(&quot;Received: &quot; + text);<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u914d\u7f6e\u597d\u6d88\u606f\u6d88\u8d39\u8005\u4e4b\u540e\uff0c\u6bcf\u5f53<code>test.queue<\/code>\u961f\u5217\u4e2d\u6709\u65b0\u7684\u6d88\u606f\u65f6\uff0c\u4e0a\u8ff0<code>receiveMessage<\/code>\u65b9\u6cd5\u5c31\u4f1a\u88ab\u81ea\u52a8\u8c03\u7528\uff0c\u5e76\u5904\u7406\u6d88\u606f\u3002<\/p>\n<\/p>\n<p><p>\u6574\u5408ActiveMQ\u5230Java\u9879\u76ee\uff0c\u65e2\u53ef\u4ee5\u589e\u5f3a\u5e94\u7528\u7684\u5f02\u6b65\u5904\u7406\u80fd\u529b\uff0c\u4e5f\u53ef\u4ee5\u63d0\u9ad8\u7cfb\u7edf\u7684\u4f38\u7f29\u6027\u548c\u53ef\u9760\u6027\u3002\u901a\u8fc7\u4ee5\u4e0a\u56db\u4e2a\u4e3b\u8981\u6b65\u9aa4\uff0c\u5373\u53ef\u5728Java\u9879\u76ee\u4e2d\u6210\u529f\u7684\u6574\u5408ActiveMQ\u8fdb\u884c\u6d88\u606f\u7684\u751f\u4ea7\u548c\u6d88\u8d39\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>Q: \u5982\u4f55\u5728java\u4e2d\u6574\u5408ActiveMQ\uff1f<\/strong><\/p>\n<p>A: \u5728Java\u4e2d\u6574\u5408ActiveMQ\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u4e2a\u6b65\u9aa4\u6765\u5b8c\u6210\uff1a1. \u9996\u5148\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5ActiveMQ\u30022. \u5728\u4f60\u7684Java\u9879\u76ee\u4e2d\u5f15\u5165ActiveMQ\u7684\u76f8\u5173\u4f9d\u8d56\u30023. \u521b\u5efaActiveMQ\u7684\u8fde\u63a5\u5de5\u5382\uff0c\u7528\u4e8e\u521b\u5efa\u8fde\u63a5\u548c\u4f1a\u8bdd\u30024. \u521b\u5efa\u4e00\u4e2a\u6d88\u606f\u751f\u4ea7\u8005\uff0c\u7528\u4e8e\u53d1\u9001\u6d88\u606f\u5230ActiveMQ\u7684\u6d88\u606f\u961f\u5217\u30025. \u521b\u5efa\u4e00\u4e2a\u6d88\u606f\u6d88\u8d39\u8005\uff0c\u7528\u4e8e\u4eceActiveMQ\u7684\u6d88\u606f\u961f\u5217\u63a5\u6536\u5e76\u5904\u7406\u6d88\u606f\u30026. \u6700\u540e\uff0c\u542f\u52a8\u4f60\u7684Java\u5e94\u7528\u7a0b\u5e8f\uff0c\u5373\u53ef\u5b9e\u73b0ActiveMQ\u7684\u6574\u5408\u3002<\/p>\n<p><strong>Q: \u5982\u4f55\u5728java\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528ActiveMQ\u8fdb\u884c\u6d88\u606f\u4f20\u9012\uff1f<\/strong><\/p>\n<p>A: \u5728Java\u5e94\u7528\u7a0b\u5e8f\u4e2d\u4f7f\u7528ActiveMQ\u8fdb\u884c\u6d88\u606f\u4f20\u9012\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5b8c\u6210\uff1a\u9996\u5148\uff0c\u521b\u5efaActiveMQ\u7684\u8fde\u63a5\u5de5\u5382\uff0c\u7528\u4e8e\u521b\u5efa\u8fde\u63a5\u548c\u4f1a\u8bdd\u3002\u7136\u540e\uff0c\u4f7f\u7528\u4f1a\u8bdd\u521b\u5efa\u4e00\u4e2a\u6d88\u606f\u751f\u4ea7\u8005\uff0c\u7528\u4e8e\u53d1\u9001\u6d88\u606f\u3002\u63a5\u4e0b\u6765\uff0c\u521b\u5efa\u4e00\u4e2a\u6d88\u606f\u6d88\u8d39\u8005\uff0c\u7528\u4e8e\u63a5\u6536\u548c\u5904\u7406\u6d88\u606f\u3002\u901a\u8fc7\u8c03\u7528\u6d88\u606f\u751f\u4ea7\u8005\u7684send\u65b9\u6cd5\u53ef\u4ee5\u5c06\u6d88\u606f\u53d1\u9001\u5230ActiveMQ\u7684\u6d88\u606f\u961f\u5217\u4e2d\u3002\u800c\u6d88\u8d39\u8005\u5219\u901a\u8fc7\u6ce8\u518c\u4e00\u4e2a\u6d88\u606f\u76d1\u542c\u5668\u6765\u63a5\u6536\u5e76\u5904\u7406\u6d88\u606f\u3002\u6700\u540e\uff0c\u8bb0\u5f97\u5728\u5e94\u7528\u7a0b\u5e8f\u7ed3\u675f\u65f6\u5173\u95ed\u8fde\u63a5\u548c\u4f1a\u8bdd\u3002<\/p>\n<p><strong>Q: \u5982\u4f55\u5728java\u4e2d\u5b9e\u73b0ActiveMQ\u7684\u70b9\u5bf9\u70b9\u6d88\u606f\u4f20\u9012\uff1f<\/strong><\/p>\n<p>A: \u5728Java\u4e2d\u5b9e\u73b0ActiveMQ\u7684\u70b9\u5bf9\u70b9\u6d88\u606f\u4f20\u9012\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u6765\u5b8c\u6210\uff1a\u9996\u5148\uff0c\u521b\u5efaActiveMQ\u7684\u8fde\u63a5\u5de5\u5382\uff0c\u7528\u4e8e\u521b\u5efa\u8fde\u63a5\u548c\u4f1a\u8bdd\u3002\u7136\u540e\uff0c\u4f7f\u7528\u4f1a\u8bdd\u521b\u5efa\u4e00\u4e2a\u6d88\u606f\u751f\u4ea7\u8005\uff0c\u7528\u4e8e\u53d1\u9001\u6d88\u606f\u5230\u6307\u5b9a\u7684\u961f\u5217\u3002\u63a5\u4e0b\u6765\uff0c\u521b\u5efa\u4e00\u4e2a\u6d88\u606f\u6d88\u8d39\u8005\uff0c\u901a\u8fc7\u6307\u5b9a\u961f\u5217\u6765\u63a5\u6536\u548c\u5904\u7406\u6d88\u606f\u3002\u6d88\u8d39\u8005\u53ef\u4ee5\u901a\u8fc7\u8c03\u7528receive\u65b9\u6cd5\u6765\u4e3b\u52a8\u63a5\u6536\u6d88\u606f\uff0c\u6216\u8005\u901a\u8fc7\u6ce8\u518c\u4e00\u4e2a\u6d88\u606f\u76d1\u542c\u5668\u6765\u5f02\u6b65\u63a5\u6536\u6d88\u606f\u3002\u5728\u70b9\u5bf9\u70b9\u6a21\u5f0f\u4e0b\uff0c\u6bcf\u6761\u6d88\u606f\u53ea\u80fd\u88ab\u4e00\u4e2a\u6d88\u8d39\u8005\u63a5\u6536\u5e76\u5904\u7406\u3002\u6700\u540e\uff0c\u8bb0\u5f97\u5728\u5e94\u7528\u7a0b\u5e8f\u7ed3\u675f\u65f6\u5173\u95ed\u8fde\u63a5\u548c\u4f1a\u8bdd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Java\u5f00\u53d1\u4e2d\uff0c\u6574\u5408ActiveMQ\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u505a\u6cd5\uff0c\u7528\u4e8e\u5b9e\u73b0\u6d88\u606f\u961f\u5217\u529f\u80fd\uff0c\u4ece\u800c\u63d0\u9ad8\u5e94\u7528\u7a0b\u5e8f\u7684\u89e3\u8026\u6027\u3001\u6269\u5c55\u6027 [&hellip;]","protected":false},"author":3,"featured_media":294909,"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\/294896"}],"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=294896"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/294896\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/294909"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=294896"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=294896"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=294896"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}