{"id":127207,"date":"2024-04-25T12:03:22","date_gmt":"2024-04-25T04:03:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/127207.html"},"modified":"2024-04-25T12:03:24","modified_gmt":"2024-04-25T04:03:24","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8java%e4%b8%ad%e4%bd%bf%e7%94%a8%e6%b3%9b%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/127207.html","title":{"rendered":"\u5982\u4f55\u5728Java\u4e2d\u4f7f\u7528\u6cdb\u578b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/02172551\/3ef369d9-4388-46f1-9f08-c511ee3e5828.webp\" alt=\"\u5982\u4f55\u5728Java\u4e2d\u4f7f\u7528\u6cdb\u578b\" \/><\/p>\n<p><p>\u5728Java\u4e2d\u4f7f\u7528\u6cdb\u578b\u53ef\u4ee5\u5927\u5e45\u63d0\u5347\u7a0b\u5e8f\u7684\u7075\u6d3b\u6027\u548c\u53ef\u8bfb\u6027\u3002<strong>\u6cdb\u578b<\/strong>\u7684\u6838\u5fc3\u4f18\u52bf\u5305\u62ec\u63d0\u4f9b\u7f16\u8bd1\u65f6\u7c7b\u578b\u5b89\u5168\u68c0\u67e5\u3001\u6d88\u9664\u7c7b\u578b\u8f6c\u6362\u7684\u9700\u8981\u3001\u4ee5\u53ca\u5b9e\u73b0\u901a\u7528\u7b97\u6cd5\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u6cdb\u578b\u53ef\u4ee5\u5e94\u7528\u4e8e\u7c7b\u3001\u63a5\u53e3\u3001\u65b9\u6cd5\u4e2d\uff0c<strong>\u901a\u8fc7\u5b9a\u4e49\u6cdb\u578b\u7c7b\u3001\u6cdb\u578b\u63a5\u53e3\u3001\u6cdb\u578b\u65b9\u6cd5\uff0c\u4ee5\u53ca\u4f7f\u7528\u7c7b\u578b\u901a\u914d\u7b26<\/strong>\uff0c\u5f00\u53d1\u8005\u80fd\u591f\u7f16\u5199\u66f4\u52a0\u901a\u7528\u4e14\u7c7b\u578b\u5b89\u5168\u7684\u4ee3\u7801\u3002\u8ba9\u6211\u4eec\u66f4\u8be6\u5c3d\u5730\u63a2\u8ba8\u6cdb\u578b\u7c7b\u7684\u6784\u5efa\u548c\u5e94\u7528\uff0c\u8fd9\u662f\u7406\u89e3Java\u6cdb\u578b\u7684\u57fa\u7840\u3002<\/p>\n<\/p>\n<p><p>\u6cdb\u578b\u7c7b\u662f\u901a\u8fc7\u5728\u7c7b\u540d\u540e\u9762\u6dfb\u52a0<code>&lt;T&gt;<\/code>\u6765\u5b9a\u4e49\u7684\uff0c\u5176\u4e2d<code>T<\/code>\u662f\u7c7b\u578b\u53c2\u6570\u3002\u8fd9\u4f7f\u5f97\u7c7b\u5728\u5b9e\u4f8b\u5316\u65f6\u53ef\u4ee5\u63a5\u53d7\u4e0d\u540c\u7684\u7c7b\u578b\u53c2\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u7075\u6d3b\u7684\u4ee3\u7801\u91cd\u7528\u3002\u4f8b\u5982\uff0c\u8003\u8651\u4e00\u4e0b\u6807\u51c6\u5e93\u4e2d\u7684<code>ArrayList&lt;E&gt;<\/code>\u7c7b\uff1b\u5b83\u662f\u4e00\u4e2a\u6cdb\u578b\u7c7b\uff0c\u5141\u8bb8\u7528\u6237\u5b9a\u4e49<code>ArrayList<\/code>\u7684\u5185\u5bb9\u7c7b\u578b\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u540c\u4e00\u4e2a\u7c7b\u53ef\u4ee5\u88ab\u7528\u4e8e\u521b\u5efa\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u7ec4\u5217\u8868\uff0c\u5982<code>ArrayList&lt;Integer&gt;<\/code>\u6216<code>ArrayList&lt;String&gt;<\/code>\uff0c\u800c\u4e0d\u9700\u8981\u9488\u5bf9\u6bcf\u79cd\u60f3\u8981\u7684\u5185\u5bb9\u7c7b\u578b\u7f16\u5199\u4e13\u95e8\u7684\u7c7b\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b9a\u4e49\u548c\u4f7f\u7528\u6cdb\u578b\u7c7b<\/h3>\n<\/p>\n<p><p>\u6cdb\u578b\u7c7b\u901a\u8fc7\u5728\u7c7b\u540d\u540e\u6dfb\u52a0\u7c7b\u578b\u53c2\u6570\u58f0\u660e\u6765\u5b9a\u4e49\u3002\u5047\u8bbe\u4f60\u60f3\u521b\u5efa\u4e00\u4e2a\u53ef\u4ee5\u5b58\u50a8\u4efb\u4f55\u7c7b\u578b\u5143\u7d20\u7684\u7b80\u5355\u5bb9\u5668\u7c7b\u3002\u4f7f\u7528\u6cdb\u578b\u6280\u672f\uff0c\u4f60\u53ef\u4ee5\u8fd9\u6837\u505a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">public class Box&lt;T&gt; {<\/p>\n<p>    private T t; <\/p>\n<p>    public void set(T t) {<\/p>\n<p>        this.t = t;<\/p>\n<p>    }<\/p>\n<p>    public T get() {<\/p>\n<p>        return t;<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a<code>Box<\/code>\u7c7b\u4e2d\uff0c<code>T<\/code>\u662f\u7c7b\u578b\u53c2\u6570\uff0c\u4ee3\u8868\u5b83\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\u53ef\u4ee5\u64cd\u4f5c\u4efb\u4f55\u7c7b\u578b\u3002\u5f53\u5b9e\u4f8b\u5316<code>Box<\/code>\u7c7b\u65f6\uff0c\u4f60\u53ef\u4ee5\u6307\u5b9a\u5177\u4f53\u7684\u7c7b\u578b\u53c2\u6570\uff0c\u6bd4\u5982<code>Integer<\/code>\u6216<code>String<\/code>\uff0c\u786e\u4fdd\u7c7b\u578b\u5b89\u5168\u3002<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u6cdb\u578b\u7c7b\u65f6\uff0c\u4f60\u53ef\u4ee5\u50cf\u4f7f\u7528\u666e\u901a\u7c7b\u90a3\u6837\uff0c\u4f46\u9700\u8981\u5728\u521b\u5efa\u5bf9\u8c61\u65f6\u6307\u5b9a\u7c7b\u578b\u53c2\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Box&lt;Integer&gt; integerBox = new Box&lt;&gt;();<\/p>\n<p>integerBox.set(123);<\/p>\n<p>Integer someInteger = integerBox.get();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u7531\u4e8e<code>integerBox<\/code>\u5df2\u7ecf\u6307\u660e\u4e86\u7c7b\u578b\u53c2\u6570\u4e3a<code>Integer<\/code>\uff0c\u6240\u4ee5\u6240\u6709\u7684\u64cd\u4f5c\u90fd\u662f\u7c7b\u578b\u5b89\u5168\u7684\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b9a\u4e49\u548c\u4f7f\u7528\u6cdb\u578b\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u6cdb\u578b\u4e0d\u4ec5\u53ef\u4ee5\u7528\u4e8e\u7c7b\uff0c\u4e5f\u53ef\u4ee5\u7528\u4e8e\u65b9\u6cd5\u3002\u6cdb\u578b\u65b9\u6cd5\u72ec\u7acb\u4e8e\u7c7b\u800c\u5b58\u5728\uff0c\u5141\u8bb8\u5728\u8c03\u7528\u65b9\u6cd5\u65f6\u6307\u660e\u7279\u5b9a\u7684\u7c7b\u578b\u53c2\u6570\u3002\u5b9a\u4e49\u4e00\u4e2a\u6cdb\u578b\u65b9\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u4f60\u53ea\u9700\u8981\u5728\u8fd4\u56de\u7c7b\u578b\u4e4b\u524d\u6dfb\u52a0\u7c7b\u578b\u53c2\u6570\u58f0\u660e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">public class Util {<\/p>\n<p>    public static &lt;T&gt; void printArray(T[] inputArray) {<\/p>\n<p>        for(T element : inputArray) {<\/p>\n<p>            System.out.printf(&quot;%s &quot;, element);<\/p>\n<p>        }<\/p>\n<p>        System.out.println();<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u65e0\u8bba\u4f55\u79cd\u7c7b\u578b\u7684\u6570\u7ec4\uff0c\u90fd\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a<code>printArray<\/code>\u65b9\u6cd5\u8fdb\u884c\u6253\u5370\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">Integer[] intArray = {1, 2, 3, 4, 5};<\/p>\n<p>String[] stringArray = {&quot;Hello&quot;, &quot;World&quot;};<\/p>\n<p>Util.printArray(intArray);<\/p>\n<p>Util.printArray(stringArray);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u6cdb\u578b\u65b9\u6cd5\u589e\u52a0\u4e86\u4ee3\u7801\u7684\u91cd\u7528\u6027\u548c\u7c7b\u578b\u5b89\u5168\u6027\uff0c\u4f60\u4e0d\u518d\u9700\u8981\u4e3a\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u7ec4\u7f16\u5199\u4e0d\u540c\u7684\u6253\u5370\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u6cdb\u578b\u63a5\u53e3\u7684\u5b9e\u73b0<\/h3>\n<\/p>\n<p><p>\u7c7b\u4f3c\u4e8e\u6cdb\u578b\u7c7b\uff0c\u63a5\u53e3\u4e5f\u53ef\u4ee5\u662f\u6cdb\u578b\u7684\u3002\u6bd4\u5982\u5e38\u89c1\u7684<code>Comparator&lt;T&gt;<\/code>\u63a5\u53e3\uff0c\u5b83\u5b9a\u4e49\u4e86\u4e00\u4e2a\u6bd4\u8f83\u4e24\u4e2a\u540c\u4e00\u7c7b\u578b\u5bf9\u8c61\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5b9e\u73b0\u6cdb\u578b\u63a5\u53e3\uff0c\u53ef\u4ee5\u521b\u5efa\u7075\u6d3b\u7684\u3001\u53ef\u7528\u4e8e\u5404\u79cd\u7c7b\u578b\u7684\u6bd4\u8f83\u5668\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">public class GenericComparator&lt;T&gt; implements Comparator&lt;T&gt; {<\/p>\n<p>    @Override<\/p>\n<p>    public int compare(T o1, T o2) {<\/p>\n<p>        return o1.toString().compareTo(o2.toString());<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\uff0c<code>GenericComparator<\/code>\u5c31\u53ef\u4ee5\u88ab\u7528\u4e8e\u4efb\u4f55\u5b9e\u73b0\u4e86<code>Comparable<\/code>\u63a5\u53e3\u7684\u7c7b\u578b\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u7c7b\u578b\u901a\u914d\u7b26\u589e\u52a0\u7075\u6d3b\u6027<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u6cdb\u578b\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u8fd9\u6837\u4e00\u4e2a\u95ee\u9898\uff1a\u67d0\u4e9b\u65b9\u6cd5\u9700\u8981\u63a5\u53d7\u6cdb\u578b\u7c7b\u578b\u7684\u53c2\u6570\uff0c\u4f46\u4f60\u4e0d\u5173\u5fc3\u5177\u4f53\u662f\u4ec0\u4e48\u7c7b\u578b\uff0c\u6216\u8005\u65b9\u6cd5\u9700\u8981\u80fd\u591f\u5904\u7406\u67d0\u4e2a\u6cdb\u578b\u7c7b\u578b\u7684\u591a\u4e2a\u5b50\u7c7b\u578b\u3002\u8fd9\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u7c7b\u578b\u901a\u914d\u7b26<code>&lt;?&gt;<\/code>\u3002\u4f8b\u5982\uff0c\u4f60\u9700\u8981\u7f16\u5199\u4e00\u4e2a\u65b9\u6cd5\uff0c\u6253\u5370\u4efb\u610f\u7c7b\u578b\u7684<code>List<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">public static void printList(List&lt;?&gt; list) {<\/p>\n<p>    for (Object elem : list)<\/p>\n<p>        System.out.print(elem + &quot; &quot;);<\/p>\n<p>    System.out.println();<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u63a5\u53d7\u4efb\u4f55\u7c7b\u578b\u7684<code>List<\/code>\uff0c\u4ece\u800c\u4f7f\u5f97\u4f60\u7684\u4ee3\u7801\u66f4\u52a0\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u7406\u89e3\u548c\u8fd0\u7528\u6cdb\u578b\u7c7b\u3001\u6cdb\u578b\u65b9\u6cd5\u3001\u6cdb\u578b\u63a5\u53e3\u4ee5\u53ca\u7c7b\u578b\u901a\u914d\u7b26\uff0cJava\u5f00\u53d1\u8005\u53ef\u4ee5\u7f16\u5199\u51fa\u65e2\u7075\u6d3b\u53c8\u7c7b\u578b\u5b89\u5168\u7684\u4ee3\u7801\u3002\u8fd9\u4e0d\u4ec5\u51cf\u5c11\u4e86\u4ee3\u7801\u7684\u5197\u4f59\uff0c\u4e5f\u589e\u52a0\u4e86\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u5065\u58ee\u6027\u3002\u5728\u9762\u5bf9\u9700\u8981\u591a\u79cd\u7c7b\u578b\u7684\u64cd\u4f5c\u65f6\uff0c\u5145\u5206\u5229\u7528Java\u6cdb\u578b\u5c06\u662f\u4e00\u4e2a\u6781\u4f73\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u6cdb\u578b\u662f\u4ec0\u4e48\uff1f\u4e3a\u4ec0\u4e48\u8981\u5728Java\u4e2d\u4f7f\u7528\u6cdb\u578b\uff1f<\/strong><\/p>\n<p>\u6cdb\u578b\u662fJava\u4e2d\u7684\u4e00\u79cd\u7279\u6027\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u5728\u5b9a\u4e49\u7c7b\u3001\u63a5\u53e3\u548c\u65b9\u6cd5\u65f6\u4f7f\u7528\u7c7b\u578b\u53c2\u6570\uff0c\u4ece\u800c\u5b9e\u73b0\u4ee3\u7801\u7684\u901a\u7528\u6027\u548c\u7c7b\u578b\u5b89\u5168\u6027\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u7f16\u8bd1\u65f6\u68c0\u67e5\u7c7b\u578b\u7684\u4e00\u81f4\u6027\uff0c\u51cf\u5c11\u7c7b\u578b\u8f6c\u6362\u7684\u9519\u8bef\uff0c\u5e76\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u5728Java\u7c7b\u4e2d\u4f7f\u7528\u6cdb\u578b\uff1f\u53ef\u4ee5\u4e3e\u4e2a\u4f8b\u5b50\u8bf4\u660e\u5417\uff1f<\/strong><\/p>\n<p>\u5728Java\u7c7b\u4e2d\u4f7f\u7528\u6cdb\u578b\u7684\u65b9\u5f0f\u662f\u5728\u7c7b\u540d\u540e\u9762\u6dfb\u52a0\u5c16\u62ec\u53f7\uff0c\u5e76\u5728\u5176\u4e2d\u5b9a\u4e49\u7c7b\u578b\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6cdb\u578b\u7c7b\u6765\u8868\u793a\u4e00\u4e2a\u7b80\u5355\u7684\u5217\u8868\uff1a<\/p>\n<pre><code class=\"language-java\">public class MyList&lt;T&gt; {\n    private T[] array;\n    \n    public MyList(T[] array) {\n        this.array = array;\n    }\n    \n    public T get(int index) {\n        return array[index];\n    }\n    \n    public void set(int index, T value) {\n        array[index] = value;\n    }\n}\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u7c7b\u540d\u540e\u9762\u7684<code>&lt;T&gt;<\/code>\u8868\u793a\u8be5\u7c7b\u662f\u4e00\u4e2a\u6cdb\u578b\u7c7b\uff0c\u5e76\u4e14\u6211\u4eec\u53ef\u4ee5\u5728\u7c7b\u4e2d\u7684\u65b9\u6cd5\u4e2d\u4f7f\u7528\u7c7b\u578b\u53c2\u6570<code>T<\/code>\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u53ef\u4ee5\u5b58\u50a8\u4e0d\u540c\u7c7b\u578b\u5143\u7d20\u7684\u5217\u8868\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5728Java\u65b9\u6cd5\u4e2d\u4f7f\u7528\u6cdb\u578b\uff1f\u53ef\u4ee5\u7ed9\u51fa\u4e00\u4e2a\u4f7f\u7528\u6cdb\u578b\u65b9\u6cd5\u7684\u5b9e\u4f8b\u5417\uff1f<\/strong><\/p>\n<p>\u5728Java\u65b9\u6cd5\u4e2d\u4f7f\u7528\u6cdb\u578b\u7684\u65b9\u5f0f\u662f\u5728\u65b9\u6cd5\u7684\u8fd4\u56de\u7c7b\u578b\u524d\u9762\u6dfb\u52a0\u5c16\u62ec\u53f7\uff0c\u5e76\u5728\u5176\u4e2d\u5b9a\u4e49\u7c7b\u578b\u53c2\u6570\u3002\u4f8b\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u6cdb\u578b\u65b9\u6cd5\u6765\u67e5\u627e\u6570\u7ec4\u4e2d\u7684\u6700\u5927\u503c\uff1a<\/p>\n<pre><code class=\"language-java\">public &lt;T extends Comparable&lt;T&gt;&gt; T findMax(T[] array) {\n    T max = array[0];\n    \n    for (T element : array) {\n        if (element.compareTo(max) &gt; 0) {\n            max = element;\n        }\n    }\n    \n    return max;\n}\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>&lt;T extends Comparable&lt;T&gt;&gt;<\/code>\u8868\u793a\u7c7b\u578b\u53c2\u6570<code>T<\/code>\u5fc5\u987b\u662f\u53ef\u6bd4\u8f83\u7684\u3002\u901a\u8fc7\u4f7f\u7528\u6cdb\u578b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u7f16\u8bd1\u65f6\u68c0\u67e5\u4f20\u5165\u7684\u6570\u7ec4\u7684\u5143\u7d20\u7c7b\u578b\uff0c\u5e76\u8fd4\u56de\u6700\u5927\u503c\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u7ec4\u4e2d\u4f7f\u7528\u76f8\u540c\u7684\u65b9\u6cd5\u6765\u67e5\u627e\u6700\u5927\u503c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Java\u4e2d\u4f7f\u7528\u6cdb\u578b\u53ef\u4ee5\u5927\u5e45\u63d0\u5347\u7a0b\u5e8f\u7684\u7075\u6d3b\u6027\u548c\u53ef\u8bfb\u6027\u3002\u6cdb\u578b\u7684\u6838\u5fc3\u4f18\u52bf\u5305\u62ec\u63d0\u4f9b\u7f16\u8bd1\u65f6\u7c7b\u578b\u5b89\u5168\u68c0\u67e5\u3001\u6d88\u9664\u7c7b\u578b\u8f6c\u6362\u7684 [&hellip;]","protected":false},"author":3,"featured_media":127213,"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\/127207"}],"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=127207"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/127207\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/127213"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=127207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=127207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=127207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}