{"id":2048,"date":"2021-06-30T13:06:41","date_gmt":"2021-06-30T05:06:41","guid":{"rendered":"https:\/\/www.xiaobo.li\/notes\/?p=2048"},"modified":"2021-06-30T13:07:01","modified_gmt":"2021-06-30T05:07:01","slug":"springmvc%e8%b7%af%e5%be%84%e5%8c%b9%e9%85%8d-ant-path%e8%b7%af%e5%be%84%e5%8c%b9%e9%85%8d","status":"publish","type":"post","link":"https:\/\/www.xiaobo.li\/notes\/archives\/2048","title":{"rendered":"SpringMVC\u8def\u5f84\u5339\u914d\/Ant PATH\u8def\u5f84\u5339\u914d"},"content":{"rendered":"<div class=\"postText\">\n<div class=\"blog_content\">\n<div id=\"msgcns!AE560D2F4B2CFFB4!674\" class=\"bvMsg\">\u5728Spring MVC\u4e2d\u7ecf\u5e38\u8981\u7528\u5230\u62e6\u622a\u5668\uff0c\u5728\u914d\u7f6e\u9700\u8981\u8981\u62e6\u622a\u7684\u8def\u5f84\u65f6\u7ecf\u5e38\u7528\u5230&lt;mvc:mapping\/&gt;\u5b50\u6807\u7b7e\uff0c\u5176\u6709\u4e00\u4e2apath\u5c5e\u6027\uff0c\u5b83\u5c31\u662f\u7528\u6765\u6307\u5b9a\u9700\u8981\u62e6\u622a\u7684\u8def\u5f84\u7684\u3002\u4f8b\u5982\uff1a<\/div>\n<div id=\"msgcns!AE560D2F4B2CFFB4!674\" class=\"bvMsg\">\n<pre class=\"pure-highlightjs\"><code class=\"xml\">&lt;mvc:interceptor&gt;\r\n&lt;mvc:mapping path=\"\/**\" \/&gt;\r\n&lt;bean class=\"com.i360r.platform.webapp.runtime.view.interceptor.GenericInterceptor\" \/&gt;\r\n&lt;\/mvc:interceptor&gt;\r\n&lt;\/mvc:interceptor&gt;<\/code><\/pre>\n<\/div>\n<div id=\"msgcns!AE560D2F4B2CFFB4!674\" class=\"bvMsg\">\u6839\u636e\u4ee5\u4e0a\u914d\u7f6e\uff0c\u6b64\u62e6\u622a\u5668\u4f1a\u62e6\u622a\u6240\u6709\u7684\u8bf7\u6c42\u3002<\/div>\n<div id=\"msgcns!AE560D2F4B2CFFB4!674\" class=\"bvMsg\"><\/div>\n<div id=\"msgcns!AE560D2F4B2CFFB4!674\" class=\"bvMsg\">Spring MVC\u4e2d\u7684\u8def\u5f84\u5339\u914d\u8981\u6bd4\u6807\u51c6\u7684web.xml\u8981\u7075\u6d3b\u7684\u591a\u3002\u9ed8\u8ba4\u7684\u7b56\u7565\u5b9e\u73b0\u4e86 org.springframework.util.AntPathMatcher\uff0c\u5c31\u50cf\u540d\u5b57\u63d0\u793a\u7684\u90a3\u6837\uff0c\u8def\u5f84\u6a21\u5f0f\u662f\u4f7f\u7528\u4e86Apache Ant\u7684\u6837\u5f0f\u8def\u5f84\uff0cApache Ant\u6837\u5f0f\u7684\u8def\u5f84\u6709\u4e09\u79cd\u901a\u914d\u7b26\u5339\u914d\u65b9\u6cd5\uff08\u5728\u4e0b\u9762\u7684\u8868\u683c\u4e2d\u5217\u51fa)<br \/>\n\u8fd9\u4e9b\u53ef\u4ee5\u7ec4\u5408\u51fa\u5f88\u591a\u79cd\u7075\u6d3b\u7684\u8def\u5f84\u6a21\u5f0f<br \/>\nTable Ant Wildcard Characters<\/p>\n<div class=\"table-wrapper\">\n<table border=\"1\">\n<tbody>\n<tr>\n<td>Wildcard<\/td>\n<td>Description<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>?<\/td>\n<td>\u5339\u914d\u4efb\u4f55\u5355\u5b57\u7b26<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>*<\/td>\n<td>\u5339\u914d0\u6216\u8005\u4efb\u610f\u6570\u91cf\u7684\u5b57\u7b26<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>**<\/td>\n<td>\u5339\u914d0\u6216\u8005\u66f4\u591a\u7684\u76ee\u5f55<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>Table Example Ant-Style Path Patterns<\/p>\n<div class=\"table-wrapper\">\n<table border=\"1\">\n<tbody>\n<tr>\n<td>Path<\/td>\n<td>Description<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\/app\/*.x<\/td>\n<td>\u5339\u914d(Matches)\u6240\u6709\u5728app\u8def\u5f84\u4e0b\u7684.x\u6587\u4ef6<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\/app\/p?ttern<\/td>\n<td>\u5339\u914d(Matches) \/app\/pattern \u548c \/app\/pXttern,\u4f46\u662f\u4e0d\u5305\u62ec\/app\/pttern<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\/**\/example<\/td>\n<td>\u5339\u914d(Matches) \/app\/example, \/app\/foo\/example, \u548c \/example<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\/app\/**\/dir\/file.<\/td>\n<td>\u5339\u914d(Matches) \/app\/dir\/file.jsp, \/app\/foo\/dir\/file.html,\/app\/foo\/bar\/dir\/file.pdf, \u548c \/app\/dir\/file.java<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>\/**\/*.jsp<\/td>\n<td>\u5339\u914d(Matches)\u4efb\u4f55\u7684.jsp \u6587\u4ef6<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<p><strong>\u00a0HandlerMapping<\/strong><\/p>\n<p>\u4e00 \u4e2aWEB\u5e94\u7528\u7a0b\u5e8f\u57fa\u672c\u4e0a\u90fd\u8981\u4f9d\u8d56\u4e8eURL\u4e0e\u8bf7\u6c42\u5904\u7406\u5668\u4e4b\u95f4\u7684\u6620\u5c04\uff0cspring MVC\u4e5f\u662f\u4e00\u6837\uff0c\u4f46Spring MVC\u5c31\u50cfSpring\u6240\u4f5c\u7684\u4e00\u5207\u4e00\u6837(\u8bd1\u8005\uff1a\u7075\u6d3b\uff0c\u53ef\u4ee5\u914d\u7f6e\u5404\u79cd\u4e1c\u897f\uff0c\u4f46\u662f\u4e5f\u9020\u6210\u4e86\u5f88\u591a\u590d\u6742\u6027)\uff0c\u80af\u5b9a\u4e0d\u4f1a\u53ea\u6709\u4e00\u79cd\u65b9\u6cd5\u6765\u6620\u5c04URL\u548c Controller\u4e4b\u95f4\u7684\u5173\u7cfb\uff0c\u5e76\u4e14\u5728\u5b9e\u9645\u4e0a\uff0c\u5141\u8bb8\u4f60\u81ea\u5df1\u521b\u5efa\u6620\u5c04\u89c4\u5219\u548c\u5b9e\u73b0\uff0c\u800c\u4e0d\u4ec5\u4ec5\u4f9d\u8d56URL\u6620\u5c04\u3002<br \/>\nSpring\u63d0\u4f9b\u4e86URL\u7684\u6620\u5c04\u5904\u7406\uff0c \u5e76\u4e14\u5904\u7406\u8def\u5f84\u6a21\u5f0f\u7684\u987a\u5e8f\u548c\u65b9\u6cd5\u5e76\u6ca1\u6709\u9650\u5b9a\u5230\u4efb\u4f55\u7684\u63a5\u53e3\u4e0a\u3002Spring MVC\u7684\u9ed8\u8ba4\u5b9e\u73b0org.springframework.web.servlet.handler. AbstractUrlHandlerMapping, \u4f1a\u4ee5\u6700\u957f\u7b26\u5408\u8def\u5f84\u6a21\u5f0f\u6765\u5339\u914d\u4e00\u4e2a\u8def\u5f84\u3002<br \/>\n\u4f8b\u5982\uff1a\u7ed9\u5b9a\u4e00\u4e2a\u8bf7\u6c42\u662f \/app\/dir\/file.jsp \u5e76\u4e14\u73b0\u5728\u5b58\u5728\u4e24\u4e2a\u8def\u5f84\u5339\u914d\u6a21\u5f0f\/**\/*.jsp \u548c\/app\/dir\/*.jsp, \u90a3\u4e48\uff0cURL\u4f1a\u5339\u914d\u90a3\u4e2a\u6a21\u5f0f\u5462\uff1f\u6700\u540e\u7684\u90a3\u4e2a\u6a21\u5f0f\/app\/dir\/*.jsp\uff0c\u4f1a\u56e0\u4e3a\u6700\u957f(has more characters)\u7684\u539f\u5219\u88ab\u5339\u914d,\u5b83\u6bd4\/**\/*.jsp\u62e5\u6709\u66f4\u591a\u7684\u5b57\u7b26.\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u4e2a\u539f\u5219\u5e76\u6ca1\u6709\u5728\u4efb\u4f55\u9ad8\u7ea7\u522b\u7684\u63a5\u53e3\u4e2d\u6307\u5b9a\uff0c\u4f46\u5374\u662f\u4e00\u79cd\u5b9e\u73b0\u7ec6\u8282\u3002<br \/>\n!!\u4e0b\u9762\u770b\u4e00\u4e0b\u9ed8\u8ba4\u7684\u4e24\u4e2aHandlerMapping<br \/>\n<span class=\"hilite1\">BeanNameUrlHandlerMapping<br \/>\n\u9ed8 \u8ba4\u7684\u6620\u5c04\u7b56\u7565\u5b9e\u73b0\u662forg.springframework.web. servlet.handler.BeanNameUrlHandlerMapping\u7c7b. \u8fd9\u4e2a\u7c7b\u8981\u6c42\u4efb\u4f55\u6709\u53ef\u80fd\u5904\u7406\u8bf7\u6c42\u7684Bean\u90fd\u8981\u8d77\u4e00\u4e2a\u4ee5\u53cd\u659c\u6760(\/)\u5b57\u7b26\u5f00\u5934\u7684\u540d\u79f0\u6216\u8005\u522b\u540d\uff0c\u8fd9\u4e2a\u540d\u79f0\u6216\u8005\u522b\u540d\u53ef\u4ee5\u662f\u7b26\u5408URL Path\u5339\u914d\u539f\u5219\u4e2d\u7684\u4efb\u4f55\u540d\u5b57\u3002<\/span><\/p>\n<p>Listing A Controller Mapped by a Bean Name<\/p>\n<div class=\"code_title\">xml \u4ee3\u7801<\/div>\n<div class=\"dp-highlighter\">\n<pre class=\"pure-highlightjs\"><code class=\"xml\">&lt;bean\u00a0name=\"\/home\"\u00a0\u00a0class=\"com.apress.expertspringmvc.flight.web.HomeController\"&gt;\u00a0\u00a0\r\n&lt;property\u00a0name=\"flightService\"\u00a0ref=\"flightService\"\u00a0\/&gt;\u00a0\r\n&lt;\/bean&gt;<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u25a0\u6ce8\u610f\uff1a\u4f60\u4e0d\u80fd\u4f7f\u7528id\u8fd9\u4e2a\u5c5e\u6027\u6765\u6307\u5b9a\u4efb\u4f55\u7684URL\u8def\u5f84\uff0c\u56e0\u4e3a\u5728XML\u89c4\u683c\u5b9a\u4e2d\u7981\u6b62(\/)\u5b57\u7b26\u6765\u6307\u5b9aXML\u7684id,\u4e0d\u8fc7\u4f60\u53ef\u4ee5\u5728\u4e00\u4e2aBean\u5b9a\u4e49\u4e2d\u540c\u65f6\u62e5\u6709id\u548cname\u5c5e\u6027<br \/>\n<span class=\"hilite1\">BeanNameUrlHandlerMapping\u00a0\u7684\u7f3a\u70b9<br \/>\n\u5b83 \u975e\u5e38\u4fbf\u4e8e\u4f7f\u7528\u7684\u540c\u65f6\uff0c\u4e5f\u62e5\u6709\u4e00\u4e9b\u7f3a\u70b9\u3002\u5b83\u4e0d\u80fd\u5f71\u5c04\u4e00\u4e2aPrototype\u7684Bean.\u6362\u53e5\u8bdd\u8bf4\uff0c\u5f53\u4f7f\u7528\u00a0BeanNameUrlHandlerMapping\u65f6\uff0c \u6240\u6709\u7684\u8bf7\u6c42\u5904\u7406\u7c7b\u53ea\u80fd\u662f\u5355\u4f8b\u7684(singletons) . \u4e00\u822c\u6765\u8bf4,Controllers \u90fd\u662f\u6309\u7167\u5355\u4f8b\u5efa\u7acb\u7684\uff0c\u6240\u4ee5\u8fd9\u4e2a\u5e76\u4e0d\u662f\u4e00\u4e2a\u5f88\u4e25\u91cd\u7684\u95ee\u9898.\u8fd8\u6709\uff0c\u6211\u4f1a\u5728\u540e\u9762\u7684\u7ae0\u8282\u4e2d\u4ecb\u7ecdController\uff0c\u53ea\u4f1a\u6709\u5f88\u5c11\u7c7b\u578b\u7684Controller\u9700\u8981\u662f prototypes.<\/span><\/p>\n<p>\u25a0\u6ce8\u91ca\uff1a Prototype bean \u662f\u4e00\u79cd\u975e\u5355\u4f8b(non-singleton)\u7684bean. \u4efb\u4f55\u4e00\u6b21\u8c03\u7528ApplicationContext\u7684getBean()\u65b9\u6cd5\u65f6\u90fd\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684Bean\u5b9e\u4f8b.<\/p>\n<p><span class=\"hilite1\">BeanNameUrlHandlerMapping\u7684\u53e6\u5916\u4e00\u4e2a\u95ee\u9898\u5b58\u5728\u4e8e\u5728\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d \u5e94\u7528\u62e6\u622a(interceptor). \u56e0\u4e3a\u8bf7\u6c42\u7684\u6620\u5c04(handler mapping )\u548cBean(beans imapping)\u7684\u6620\u5c04\u7ed9\u7ed1\u5b9a\u5728\u4e00\u8d77\u4e86\uff0c\u6ca1\u6709\u5206\u5f00,\u8fd9\u6837\u5c31\u4e0d\u53ef\u80fd\u5728Controller\u548c\u62e6\u622a\u4e4b\u95f4\u521b\u5efa\u590d\u6742\u7684\u5173\u7cfb\u3002\u5982\u679c\u6709\u590d\u6742\u7684\u8bf7\u6c42\u6620\u5c04\u9700\u6c42\uff0c\u4f60\u53ef\u4ee5\u7528 SimpleUrlHandlerMapping \u6765\u4ee3\u66ffBeanNameUrlHandlerMapping. SimpleUrlHandlerMapping\u4f5c\u4e3aBeanNameUrlHandlerMapping\u7684\u53e6\u5916\u4e00\u79cd\u9009\u62e9, SimpleUrlHandlerMapping\u76f4\u6307BeanNameUrlHandlerMapping\u7684\u4e24\u5927\u8f6f\u808b.\u5b83\u53ef\u4ee5\u6620\u5c04 prototype\u7c7b\u578b\u7684\u8bf7\u6c42\u5904\u7406\u5668,\u5e76\u4e14\u5b83\u5141\u8bb8\u4f60\u4e3a\u5904\u7406\u5668(handlers)\u548c\u62e6\u622a\u5668(interceptors)\u4e4b\u95f4\u521b\u5efa\u590d\u6742\u7075\u6d3b\u7684\u6620\u5c04\u8def\u5f84\u7684\u6620\u5c04\u7b97\u6cd5\u4e0eBeanNameUrlHandlerMapping\u662f \u4f7f\u7528\u76f8\u540c\u7684\u57fa\u7840\u7ec4\u4ef6\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6a21\u5f0f\u4f9d\u7136\u662f\u6620\u5c04URL\u5230\u8bf7\u6c42\u5904\u7406\u5668\u7684(request handler) \uff0c\u4f60\u7b80\u5355\u7684\u5728ApplicationContext\u4e2d\u58f0\u660e\u4e00\u4e0b\uff0c\u5c31\u53ef\u4ee5\u4f7f\u7528SimpleUrlHandlerMapping\u4e86. DispatcherServlet\u4f1a\u6839\u636e\u7c7b\u578b\u627e\u5230\u7684\uff0c\u5e76\u4e14\u4e0d\u4f1a\u521b\u5efa\u9ed8\u8ba4\u7684\u6620\u5c04\u5668\u4e86(BeanNameUrlHandlerMapping).\u610f\u601d\u5c31\u662f\uff0c \u5982\u679c\u4f60\u60f3\u4e24\u4e2a\u90fd\u7528\uff0c\u90a3\u4e48\u5c31\u8981\u5168\u90e8\u58f0\u660e\u4e00\u4e0b\u5728ApplicationContext\u91cc.<br \/>\n\u25a0\u63d0\u793a DispatcherServlet\u4f1a\u94fe\u5f0f\u5904\u7406\u8bf7\u6c42\u7684\uff08\u8bd1\u8005\uff1a\u4f9d\u6b21\u5904\u7406\u8bf7\u6c42\uff0c\u53ef\u4ee5\u53c2\u7167\u8fc7\u6ee4\u5668\u548cGOF\u4e2d\u7684\u8d23\u4efb\u94fe\u6a21\u5f0f)\uff0c\u8fd9\u6837\u5141\u8bb8\u6309\u7167\u4f60\u7684\u8981\u6c42\u5904\u7406\u6620\u5c04\uff0c\u6620\u5c04\u5904\u7406\u5668(Handler mappings )\u5b9e\u73b0\u4e86Orderedr\u63a5\u53e3.<\/span><\/p>\n<p>&nbsp;<\/p>\n<h3><strong>\u540c\u65f6\u5b58\u5728\u8def\u5f84\u53d8\u91cf\u548c\u901a\u914d\u7b26\u5339\u914d\u65f6\u7684\u4f18\u5148\u7ea7\u5173\u7cfb<\/strong><\/h3>\n<p>\u5f53\u4e00\u4e2a\u8bf7\u6c42\u8def\u5f84\u53ef\u4ee5\u5339\u914d\u591a\u4e2a\u5904\u7406\u5668\u65b9\u6cd5\u65f6\uff0cSpringMVC\u5c06\u4f18\u5148\u5339\u914d\u8def\u5f84\u6620\u5c04\u66f4\u7cbe\u786e\u7684\u90a3\u4e2a\u3002<\/p>\n<p>\u62e5\u6709\u66f4\u5c11\u7684\u8def\u5f84\u53d8\u91cf\u548c\u901a\u914d\u7b26\u7684\u8def\u5f84\u6620\u5c04\u66f4\u7cbe\u786e\u3002\u6bd4\u5982\/hotels\/{hotel}\/*\u62e5\u6709\u4e00\u4e2a\u8def\u5f84\u53d8\u91cf\u548c\u4e00\u4e2a\u901a\u914d\u7b26\uff0c\u90a3\u4e48\u5b83\u4f1a\u6bd4\/hotels\/{hotel}\/**\u66f4\u7cbe\u786e\uff0c\u4f1a\u4f18\u5148\u5339\u914d\uff0c\u56e0\u4e3a\u540e\u8005\u62e5\u6709\u4e00\u4e2a\u8def\u5f84\u53d8\u91cf\u548c\u4e24\u4e2a\u901a\u914d\u7b26\u3002<br \/>\n\u5982\u679c\u4e24\u4e2a\u8def\u5f84\u6620\u5c04\u7684\u901a\u914d\u7b26\u6570\u91cf\u662f\u4e00\u6837\u7684\uff0c\u5219\u6307\u5b9a\u7684\u4fe1\u606f\u66f4\u591a\u90a3\u4e2a\u8def\u5f84\u4f1a\u66f4\u7cbe\u786e\uff0c\u6bd4\u5982\/hotels\/abc*\u6bd4\/hotels\/*\u66f4\u7cbe\u786e\u3002<br \/>\n\u8def\u5f84\u53d8\u91cf\u6bd4\u901a\u914d\u7b26\u66f4\u7cbe\u786e\u3002\u6bd4\u5982\/hotels\/{hotel}\u6bd4\/hotels\/*\u66f4\u7cbe\u786e\u3002<br \/>\n\u9ed8\u8ba4\u6620\u5c04\/**\u6bd4\u5176\u5b83\u6240\u6709\u7684\u8def\u5f84\u6620\u5c04\u7684\u4f18\u5148\u7ea7\u90fd\u4f4e\uff0c\u6bd4\u5982\/{a}\/{b}\u5c31\u6bd4\u5b83\u66f4\u7cbe\u786e\u3002<br \/>\n\u62e5\u6709\u4e24\u4e2a\u901a\u914d\u7b26\u7684\u8def\u5f84\u6620\u5c04\u6bd4\u5176\u5b83\u6ca1\u6709\u4e24\u4e2a\u901a\u914d\u7b26\u7684\u8def\u5f84\u6620\u5c04\u7684\u4f18\u5148\u7ea7\u90fd\u4f4e\uff0c\u6bd4\u5982\/abc\/**\u7684\u4f18\u5148\u7ea7\u4f4e\u4e8e\/abc\/{a}\u3002<\/p>\n<p>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728Spring MVC\u4e2d\u7ecf\u5e38\u8981\u7528\u5230\u62e6\u622a\u5668\uff0c\u5728\u914d\u7f6e\u9700\u8981\u8981\u62e6\u622a\u7684\u8def\u5f84\u65f6\u7ecf\u5e38\u7528\u5230&#038;lt &hellip; <a href=\"https:\/\/www.xiaobo.li\/notes\/archives\/2048\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297],"tags":[],"class_list":["post-2048","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/2048","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/comments?post=2048"}],"version-history":[{"count":0,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/posts\/2048\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/media?parent=2048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/categories?post=2048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xiaobo.li\/notes\/wp-json\/wp\/v2\/tags?post=2048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}