{"id":62,"date":"2017-09-05T17:21:47","date_gmt":"2017-09-05T09:21:47","guid":{"rendered":"http:\/\/lst.wting.me\/?p=62"},"modified":"2017-09-05T17:22:21","modified_gmt":"2017-09-05T09:22:21","slug":"62","status":"publish","type":"post","link":"https:\/\/lst.wting.top\/?p=62","title":{"rendered":"\u6811\u8393\u6d3e\u667a\u80fd\u5bb6\u5c45\uff1aSpring\u96c6\u6210netty"},"content":{"rendered":"<p>\u4e0b\u9762\u5c31\u8fdb\u5165\u5230\u771f\u6b63\u7684\u5f00\u53d1\u9636\u6bb5\u3002<\/p>\n<p>\u67b6\u6784\u9009\u7528\u7684\u662fSpring+netty\uff0c\u4e3a\u4ec0\u4e48\u9009\u62e9Spring\u6765\u96c6\u6210netty\uff0c\u800c\u4e0d\u662f\u76f4\u63a5\u7528netty\u6253\u51fa\u6765\u4e00\u4e2ajar\u5305\uff0c\u76f4\u63a5\u901a\u8fc7java \u2013jar netty.jar\u547d\u4ee4\u6765\u76f4\u63a5\u6267\u884c\u5462\uff1f\u56fa\u7136\u901a\u8fc7java \u2013jar\u7684\u5f62\u5f0f\u6267\u884cJava\u65b9\u6cd5\u65e0\u987b\u8ba9jvm\u989d\u5916\u7684\u53bb\u52a0\u8f7d\u5176\u4ed6\u65e0\u7528\u7684jar\u5305\uff0c\u80fd\u591f\u8ba9jvm\u6700\u5927\u7a0b\u5ea6\u7684\u4e3a\u6211\u4eec\u81ea\u5df1\u7684netty\u65b9\u6cd5\u670d\u52a1\u3002\u4f46\u662f\uff0c\u901a\u8fc7java \u2013jar\u7684\u65b9\u5f0f\u6267\u884c\u7684jar\u5305\uff0c\u4ed6\u53ea\u662f\u4e00\u4e2a\u7528\u6237\u8fdb\u7a0b\u53ef\u80fd\u4f1a\u56e0\u4e3a\u7528\u6237\u767b\u51fa\u800c\u5bfc\u81f4\u8be5\u8fdb\u7a0b\u5931\u6548\u3002\u5373\u4f7f\u5728\u547d\u4ee4\u4e2d\u52a0\u4e0anohup\u8ba9\u5176\u4e0e\u7528\u6237Session\u65e0\u5173\uff0c\u4f46\u56e0\u4e3a\u8fdb\u7a0b\u4f18\u5148\u7ea7\u4f4e\uff0c\u4e5f\u4f1a\u5bfc\u81f4\u5fc3\u8df3\u5305\u5931\u6548\uff0c\u751a\u81f3\u5728\u5185\u5b58\u4e0d\u8db3\u65f6\u4f18\u5148\u56de\u6536\u8be5\u8fdb\u7a0b\u7684\u5185\u5b58\u3002\u800c\u5982\u679c\u5c06netty\u96c6\u6210\u5230Spring\u4e2d\uff0cSpring\u672c\u6765\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684\u6846\u67b6\uff0c\u5bf9\u6027\u80fd\u7684\u5f71\u54cd\u8f83\u5c0f\uff0c\u800c\u4e14Spring\u4f1a\u88ab\u52a0\u8f7d\u5230Tomcat\u4e2d\uff0cTomcat\u672c\u6765\u5c31\u662f\u4e00\u4e2a\u4f18\u79c0\u7684\u865a\u62df\u670d\u52a1\u5668\uff0clog\u8f93\u51fa\uff0c\u7ebf\u7a0b\u5206\u914d\u90fd\u975e\u5e38\u5408\u7406\uff0c\u91cd\u8981\u7684\u662f\uff0cTomcat\u53ef\u4ee5\u4f5c\u4e3a\u670d\u52a1\u6765\u8fd0\u884c\uff0c\u5373\u4f7f\u7528\u6237\u767b\u5f55\u767b\u51fa\u4e5f\u4e1d\u6beb\u4e0d\u4f1a\u5f71\u54cdTomcat\u7684\u8fd0\u884c\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u4ece\u6211\u4eec\u9700\u8981\u7684\u529f\u80fd\u89d2\u5ea6\u6765\u8bb2\uff0c\u6bd4\u5982\u6211\u4eec\u9700\u8981\u8ba9\u6811\u8393\u6d3e\u65b0\u589e\u4e00\u4e2a\u95f9\u949f\uff0cSpring\u53ef\u4ee5\u6267\u884c\u5b9a\u65f6\u4efb\u52a1\uff0c\u6211\u4eec\u4ec5\u4ec5\u9700\u8981\u505a\u4e00\u4e0b\u76f8\u5e94\u7684\u914d\u7f6e\u4fbf\u53ef\u8ba9Spring\u5b9a\u65f6\u53bb\u6267\u884c\u4e00\u4e9b\u4efb\u52a1\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u8ba9Spring\u53bb\u8c03\u7528\u672c\u5730\u7684\u4e00\u4e9b\u670d\u52a1\uff0c\u8fd9\u6837\u4e00\u4e2aSpring\u4f5c\u4e3a\u4e2d\u8f6c\uff0c\u65e2\u53ef\u4ee5\u63d0\u4f9b\u5bf9\u5916\u7684\u7f51\u9875\u94fe\u63a5\uff0c\u53c8\u53ef\u4ee5\u8c03\u7528\u672c\u5730\u5e94\u7528\uff0c\u4e00\u4e3e\u4e24\u5f97\u3002<\/p>\n<p>\u7528Spring\u96c6\u6210netty\uff0c\u9996\u5148\u8fd8\u662f\u8981\u4e86\u89e3\u5982\u4f55\u751f\u6210Spring\u9879\u76ee\u3002\u6211\u7684\u7535\u8111\u91c7\u7528\u7684\u662fWindows\u7cfb\u7edf\uff0c\u5f00\u53d1\u4f7f\u7528\u7684\u662feclipse\uff0c\u4f9d\u8d56\u7ba1\u7406\u91c7\u7528\u7684\u662fmaven\uff08\u5173\u4e8emaven\u7684\u642d\u5efa\u4f7f\u7528\u968f\u540e\u8bb2\u89e3\uff09\uff0c\u90a3\u4e48\uff0c\u9996\u5148\u65b0\u5efa\u4e00\u4e2a\u6211\u4eec\u7684spring\u5e94\u7528\u3002<\/p>\n<p>Eclipse\u4e2d\u70b9\u51fbNew&#8211;&gt;Maven project&#8211;&gt;next<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-63\" src=\"http:\/\/lst.wting.me\/wp-content\/uploads\/2017\/09\/xxx-300x187.png\" alt=\"\" width=\"300\" height=\"187\" srcset=\"https:\/\/lst.wting.top\/wp-content\/uploads\/2017\/09\/xxx-300x187.png 300w, https:\/\/lst.wting.top\/wp-content\/uploads\/2017\/09\/xxx-768x479.png 768w, https:\/\/lst.wting.top\/wp-content\/uploads\/2017\/09\/xxx.png 940w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u70b9\u51fbnext\uff0c\u586b\u5165\u5de5\u7a0b\u540d\u548cpackage\u540d\uff0c\u7136\u540eFinish\u3002<\/p>\n<p>\u6b64\u65f6\uff0c\u5982\u679c\u65b0\u5efa\u7684\u5de5\u7a0b\u62a5\u9519\uff0c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-64\" src=\"http:\/\/lst.wting.me\/wp-content\/uploads\/2017\/09\/2222-300x192.png\" alt=\"\" width=\"300\" height=\"192\" srcset=\"https:\/\/lst.wting.top\/wp-content\/uploads\/2017\/09\/2222-300x192.png 300w, https:\/\/lst.wting.top\/wp-content\/uploads\/2017\/09\/2222.png 414w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u6b64\u65f6\u9700\u8981\u5728pom\u91cc\u65b0\u589e\u5173\u4e8eservlet\u548cspring\u76f8\u5173\u7684\u4f9d\u8d56\u3002Pom\u65b0\u589e\u5982\u4e0b\uff1a<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;spring-core&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;${spring.version}&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;spring-beans&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;${spring.version}&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;spring-context&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;${spring.version}&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;spring-jdbc&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;${spring.version}&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;org.springframework&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;spring-tx&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;${spring.version}&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>&lt;dependency&gt;<\/p>\n<p>&lt;groupId&gt;javax.servlet&lt;\/groupId&gt;<\/p>\n<p>&lt;artifactId&gt;servlet-api&lt;\/artifactId&gt;<\/p>\n<p>&lt;version&gt;2.4&lt;\/version&gt;<\/p>\n<p>&lt;\/dependency&gt;<\/p>\n<p>\u7b49\u5f85maven\u66f4\u65b0\u5b8c\u6bd5\u540e\uff0c\u6211\u4eec\u4fbf\u53ef\u4ee5\u8fdb\u884cpackage\u548cClass\u7684\u5f00\u53d1\u4e86\u3002<\/p>\n<p>\u9996\u5148\u4ee5\u4e00\u4e2ademo\u7684\u5f62\u5f0f\uff0c\u8ba9Server\u548cClient\u80fd\u591f\u8fd0\u884c\u8d77\u6765\u76f8\u4e92\u901a\u4fe1\u3002\u90a3\u4e48\uff0c\u6211\u4eec\u65b0\u5efa\u4e00\u4e2aIOServer\u7c7b\uff0c\u7c7b\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<p>@Component<\/p>\n<p><strong>public<\/strong> <strong>class<\/strong> IOServer {<\/p>\n<p>&nbsp;<\/p>\n<p><strong>private<\/strong> <strong>static<\/strong> <strong>final<\/strong> <strong>int<\/strong> <strong><em>portNumber<\/em><\/strong> = 13013;<\/p>\n<p>&nbsp;<\/p>\n<p>@PostConstruct<\/p>\n<p><strong>public<\/strong> <strong>void<\/strong> start(){<\/p>\n<p>&nbsp;<\/p>\n<p><strong>new<\/strong> Thread(<strong>new<\/strong> Runnable() {<\/p>\n<p>@Override<\/p>\n<p><strong>public<\/strong> <strong>void<\/strong> run() {<\/p>\n<p>&nbsp;<\/p>\n<p>EventLoopGroup bossGroup = <strong>new<\/strong> NioEventLoopGroup();<\/p>\n<p>EventLoopGroup workerGroup = <strong>new<\/strong> NioEventLoopGroup();<\/p>\n<p><strong>try<\/strong> {<\/p>\n<p>ServerBootstrap b = <strong>new<\/strong> ServerBootstrap();<\/p>\n<p>b.group(bossGroup, workerGroup);<\/p>\n<p>b.channel(NioServerSocketChannel.<strong>class<\/strong>);<\/p>\n<p>b.childHandler(<strong>new<\/strong> IOServerInitializer());<\/p>\n<p>ChannelFuture f = b.bind(<strong><em>portNumber<\/em><\/strong>).sync();<\/p>\n<p>f.channel().closeFuture().sync();<\/p>\n<p>} <strong>catch<\/strong> (InterruptedException e) {<\/p>\n<p>e.printStackTrace();<\/p>\n<p>} <strong>finally<\/strong> {<\/p>\n<p>bossGroup.shutdownGracefully();<\/p>\n<p>workerGroup.shutdownGracefully();<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>}).start();<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>\u5176\u4e2d\uff0cComponent\u8868\u793aSpring\u7684\u5305\u626b\u63cf\u673a\u5236\uff0c\u8981\u6c42Spring\u5bf9\u67d0\u4e9b\u7c7b\u8fdb\u884c\u626b\u63cf\uff0c\u5f53\u626b\u63cf\u5230Component\u5173\u952e\u5b57\u65f6\uff0c\u81ea\u52a8\u521b\u5efa\u8fd9\u4e2a\u7c7b\u7684\u5b9e\u4f8b\uff0c\u7136\u540e\u626b\u63cf\u662f\u5426\u6709PostConstruct\uff0c\u8fd9\u4e2a\u5173\u952e\u5b57\u7684\u610f\u601d\u662f\u81ea\u52a8\u6267\u884c\uff0c\u5373\u626b\u63cf\u5230\u8fd9\u4e2a\u7c7b\u4e4b\u540e\uff0c\u521b\u5efa\u5b9e\u4f8b\uff0c\u5e76\u81ea\u52a8\u6267\u884cPostConstuct\u4fee\u9970\u7684\u65b9\u6cd5\u3002<\/p>\n<p>\u5bf9\u4e8e\u8be6\u7ec6\u7684\u4ee3\u7801\u6211\u4f1a\u4ee5\u5305\u7684\u5f62\u5f0f\u4e0a\u4f20\u5230\u6211\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u91cc\u6211\u60f3\u8bb2\u4e00\u4e0b\u5173\u4e8eSpring\u7684\u4e00\u4e9b\u7b80\u5355\u5e94\u7528\u3002<\/p>\n<p>Spring\u5de5\u7a0b\uff0c\u5176\u5b9e\u672c\u8d28\u4e0a\u8fd8\u662f\u4e00\u4e2aTomcat\uff08Javaweb\uff09\u5de5\u7a0b\uff0c\u53ea\u4e0d\u8fc7\u5728Javaweb\u7684\u57fa\u7840\u4e0a\u65b0\u589e\u4e86\u4e00\u4e9bSpring\u7684\u63d2\u4ef6\u3002\u7a0b\u5e8f\u542f\u52a8\u7684\u65f6\u5019\uff0c\u9996\u5148\u53bb\u5bfb\u627eweb.xml\uff0cweb.xml\u7684\u4f5c\u7528\u53ef\u4ee5\u8ba4\u4e3a\u662f\u4e00\u4e2a\u5f15\u5bfc\uff0c\u73b0\u5728\u6211\u4eec\u5728\u8fd9\u91cc\u5148\u4e86\u89e3\u4e00\u4e0bweb.xml\u7684\u6587\u4ef6\u5185\u5bb9\u3002<\/p>\n<p>&lt;servlet&gt;<\/p>\n<p>&lt;servlet-name&gt;InitEntry&lt;\/servlet-name&gt;<\/p>\n<p>&lt;servlet-class&gt;lst.csu.common.Entry&lt;\/servlet-class&gt;<\/p>\n<p>&lt;load-on-startup&gt;10&lt;\/load-on-startup&gt;<\/p>\n<p>&lt;\/servlet&gt;<\/p>\n<p>&lt;servlet-mapping&gt;<\/p>\n<p>&lt;servlet-name&gt;InitEntry&lt;\/servlet-name&gt;<\/p>\n<p>&lt;url-pattern&gt;\/<u>init<\/u>&lt;\/url-pattern&gt;<\/p>\n<p>&lt;\/servlet-mapping&gt;<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u6587\u4ef6\u4e2d\u6709\u8fd9\u4e48\u51e0\u884c\u914d\u7f6e\uff0c\u5b83\u7684\u610f\u601d\u662f\uff0c\u6211\u9996\u5148\u5b9a\u4e49\u4e00\u4e2aservlet-name\u662fInitEntry\u7684Servlet\u5de5\u7a0b\uff0c\u5bf9\u5e94\u7684URL\u662f<a href=\"http:\/\/xxxx.com\/init\">http:\/\/xxxx.com\/init<\/a>\uff0c\u800c\u5bf9\u4e8e\u4e0a\u9762\u7684\u4e09\u4e2a\u914d\u7f6e\u8868\u793a\uff0cInitEntry\u8fd9\u4e2aservlet\u5de5\u7a0b\uff0c\u5bf9\u5e94\u7684\u7c7b\u662flst.csu.common.Entry\uff0cload-on-startup\u8868\u793a\u81ea\u52a8\u542f\u52a8\uff0c10\u662f\u4e00\u4e2a\u4f18\u5148\u7ea7\u6570\u5b57\uff0c\u8d8a\u5c0f\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002<\/p>\n<p>\u90a3\u4e48\u6211\u4eec\u6839\u636eweb.xml\u8fd9\u4e2a\u914d\u7f6e\u53bb\u5bfb\u627elst.csu.common.Entry\uff0c\u53d1\u73b0\u8fd9\u4e2a\u7c7b\u7684\u4f5c\u7528\u662f\u8fd9\u6837\u7684\uff1a<\/p>\n<p>@Override<\/p>\n<p><strong>public<\/strong> <strong>void<\/strong> init() <strong>throws<\/strong> ServletException {<\/p>\n<p>ContextUtil.<em>getApplicationContext<\/em>();<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>\u5176\u5b9e\u6700\u7ec8\u662f\u4e3a\u4e86\u8ba9Servlet\u8bfb\u53d6applicationContext.xml\u6587\u4ef6\uff0c\u8fd9\u4e2a\u6587\u4ef6\u662f\u5e72\u561b\u5462\uff1f\u4ec5\u4ec5\u662f\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\uff0c\u544a\u77e5Spring\u9700\u8981\u626b\u63cf\u54ea\u4e9b\u6587\u4ef6\uff0c\u9700\u8981\u9884\u52a0\u8f7d\u54ea\u4e9b\u7c7b\u7b49\u7b49\u3002<\/p>\n<p>\u6211\u5728applicationContext.xml\u914d\u7f6e\u7684\u662f\uff1a<\/p>\n<p>&lt;context:component-scan base-package=&#8221;lst.csu.sockcenter&#8221; \/&gt;<\/p>\n<p>\u4e5f\u5c31\u662f\u8981\u6c42Spring\u53bb\u626b\u63cflst.csu.sockcenter\u8fd9\u4e2a\u5305\u3002\u90a3\u4e48\u95ee\u9898\u5c31\u5230\u4e86\u524d\u9762\u90a3\u4e2a\u5173\u4e8eCommponent\u7684\u89e3\u91ca\u4e86\uff0cSpring\u5c31\u4f1a\u81ea\u52a8\u53bb\u626b\u63cf\u6ce8\u89e3\uff0c\u4ece\u800c\u81ea\u52a8\u6267\u884c\u67d0\u4e9b\u7a0b\u5e8f\u3002<\/p>\n<p>\u4ee3\u7801\u592a\u591a\u4e86\uff0c\u6211\u5c06demo\u5de5\u7a0b\u4ee5\u538b\u7f29\u5305\u7684\u5f62\u5f0f\u4e0a\u4f20\u5230\u670d\u52a1\u5668\uff0c\u4f9b\u5927\u5bb6\u4e0b\u8f7d\u3002\u73b0\u5728demo\u8fd8\u6ca1\u6709\u589e\u52a0\u5177\u4f53\u7684\u903b\u8f91\uff0c\u6240\u4ee5\u5f88\u7b80\u5355\uff0c\u4ec5\u4ec5\u7528\u6765\u5c55\u793a\u5982\u4f55\u8fdb\u884c\u65b0\u5efaSpring\u5de5\u7a0b\u3002\u6240\u4ee5\u7a0d\u5b89\u52ff\u8e81\uff0c\u786c\u4ef6\u5df2\u7ecf\u8d2d\u56de\uff0c\u4e0b\u9762\u6811\u8393\u6d3e\u667a\u80fd\u5bb6\u5c45\u9879\u76ee\u4f1a\u4e0d\u65ad\u505a\u4e0b\u53bb\u3002\u53e6\u5916\u6211\u4ee3\u7801\u5199\u7684\u4e0d\u592a\u597d\uff0c\u4e5f\u662f\u81ea\u5df1\u5728\u63a2\u7d22\u8fd9\u4e9b\u4e1c\u897f\uff0c\u6240\u4ee5\u5927\u5bb6\u89c1\u8c05\u5566\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e0b\u8f7d\u5730\u5740\uff1a<a href=\"http:\/\/lst.wting.me\/wp-content\/uploads\/2017\/09\/SockServer.zip\">\u6811\u8393\u6d3enetty\u96c6\u6210demo<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u5c31\u8fdb\u5165\u5230\u771f\u6b63\u7684\u5f00\u53d1\u9636\u6bb5\u3002 \u67b6\u6784\u9009\u7528\u7684\u662fSpring+netty\uff0c\u4e3a\u4ec0\u4e48\u9009\u62e9Spring\u6765\u96c6\u6210netty\uff0c\u800c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/62"}],"collection":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62"}],"version-history":[{"count":2,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":67,"href":"https:\/\/lst.wting.top\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions\/67"}],"wp:attachment":[{"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lst.wting.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}