{"id":6189,"date":"2022-07-06T20:18:43","date_gmt":"2022-07-06T12:18:43","guid":{"rendered":"http:\/\/123.57.164.21\/?p=6189"},"modified":"2022-07-06T20:18:43","modified_gmt":"2022-07-06T12:18:43","slug":"%e6%b5%85%e8%b0%88spring%e4%be%9d%e8%b5%96%e6%b3%a8%e5%85%a5","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=6189","title":{"rendered":"\u6d45\u8c08spring\u4f9d\u8d56\u6ce8\u5165"},"content":{"rendered":"\n<h5 class=\"wp-block-heading\"><strong>\u524d\u8a00<\/strong><\/h5>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5148\u4e86\u89e3\u4e0b<a rel=\"noreferrer noopener\" href=\"https:\/\/so.csdn.net\/so\/search?q=%E6%8E%A7%E5%88%B6%E5%8F%8D%E8%BD%AC&amp;spm=1001.2101.3001.7020\" target=\"_blank\">\u63a7\u5236\u53cd\u8f6c<\/a>&#8212;<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/33492169\">\u8f6c\u81ea\u77e5\u4e4e\u7684\u56fd\u54e5<\/a><\/p>\n\n\n\n<p>\u5982\u679c\u4e00\u4e2a\u7c7bA \u7684\u529f\u80fd\u5b9e\u73b0\u9700\u8981\u501f\u52a9\u4e8e\u7c7bB\uff0c\u90a3\u4e48\u5c31\u79f0\u7c7bB\u662f\u7c7bA\u7684\u4f9d\u8d56\uff0c\u5982\u679c\u5728\u7c7bA\u7684\u5185\u90e8\u53bb\u5b9e\u4f8b\u5316\u7c7bB\uff0c\u90a3\u4e48\u4e24\u8005\u4e4b\u95f4\u4f1a\u51fa\u73b0\u8f83\u9ad8\u7684\u8026\u5408\uff0c\u4e00\u65e6\u7c7bB\u51fa\u73b0\u4e86\u95ee\u9898\uff0c\u7c7bA\u4e5f\u9700\u8981\u8fdb\u884c\u6539\u9020\uff0c\u5982\u679c\u8fd9\u6837\u7684\u60c5\u51b5\u8f83\u591a\uff0c\u6bcf\u4e2a\u7c7b\u4e4b\u95f4\u90fd\u6709\u5f88\u591a\u4f9d\u8d56\uff0c\u90a3\u4e48\u5c31\u4f1a\u51fa\u73b0\u7275\u4e00\u53d1\u800c\u52a8\u5168\u8eab\u7684\u60c5\u51b5\uff0c\u7a0b\u5e8f\u4f1a\u6781\u96be\u7ef4\u62a4\uff0c\u5e76\u4e14\u5f88\u5bb9\u6613\u51fa\u73b0\u95ee\u9898\u3002\u8981\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5c31\u8981\u628aA\u7c7b\u5bf9B\u7c7b\u7684\u63a7\u5236\u6743\u62bd\u79bb\u51fa\u6765\uff0c\u4ea4\u7ed9\u4e00\u4e2a\u7b2c\u4e09\u65b9\u53bb\u505a\uff0c\u628a\u63a7\u5236\u6743\u53cd\u8f6c\u7ed9\u7b2c\u4e09\u65b9\uff0c\u5c31\u79f0\u4f5c\u63a7\u5236\u53cd\u8f6c\uff08IOC Inversion Of Control\uff09\u3002\u63a7\u5236\u53cd\u8f6c\u662f\u4e00\u79cd\u601d\u60f3\uff0c\u662f\u80fd\u591f\u89e3\u51b3\u95ee\u9898\u7684\u4e00\u79cd\u53ef\u80fd\u7684\u7ed3\u679c\uff0c\u800c\u4f9d\u8d56\u6ce8\u5165\uff08Dependency Injection\uff09\u5c31\u662f\u5176\u6700\u5178\u578b\u7684\u5b9e\u73b0\u65b9\u6cd5\u3002\u7531\u7b2c\u4e09\u65b9\uff08\u6211\u4eec\u79f0\u4f5cIOC\u5bb9\u5668\uff09\u6765\u63a7\u5236\u4f9d\u8d56\uff0c\u628a\u4ed6\u901a\u8fc7\u6784\u9020\u51fd\u6570\u3001\u5c5e\u6027\u6216\u8005\u5de5\u5382\u6a21\u5f0f\u7b49\u65b9\u6cd5\uff0c\u6ce8\u5165\u5230\u7c7bA\u5185\uff0c\u8fd9\u6837\u5c31\u6781\u5927\u7a0b\u5ea6\u7684\u5bf9\u7c7bA\u548c\u7c7bB\u8fdb\u884c\u4e86\u89e3\u8026\u3002<\/p>\n\n\n\n<p>\u60f3\u7406\u89e3\u63a7\u5236\u53cd\u8f6c\uff0c\u5c31\u5f97\u60f3\u6e05\u695a\u8fd9\u4e2a\u7b2c\u4e09\u65b9\uff0c\u5728spring\u4e2d\u4fbf\u662fIOC\u5bb9\u5668\u3002\u5c06\u539f\u672c\u4e24\u4e2a\u8026\u5408\u6027\u5f88\u5f3a\u7684\u5bf9\u8c61\u5206\u7ed9\u4e2d\u4ecb\u7b2c\u4e09\u65b9\u8fdb\u884c\u63a7\u5236\u3002<\/p>\n\n\n\n<p>\u4f9d\u8d56\u6ce8\u5165\u662f\u5b9e\u73b0\u63a7\u5236\u53cd\u8f6c\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c\u4f9d\u8d56\u6ce8\u5165\u662f\u5c06\u5b9e\u4f8b\u53d8\u91cf\u4f20\u5165\u5230\u4e00\u4e2a\u5bf9\u8c61\u4e2d\u53bb\u7684\u8fc7\u7a0b\u3001\u65b9\u5f0f\u3001\u4e00\u79cd\u8bbe\u8ba1\u6a21\u5f0f\u3002\u4f9d\u8d56\u6ce8\u5165\u65b9\u5f0f\u4e0b\uff0c\u6ce8\u5165\u5c06\u4f9d\u8d56\u4f20\u7ed9\u8c03\u7528\u65b9\uff0c\u4e0d\u662f\u50cf\u539f\u6765\u7684\u8c03\u7528\u65b9\u76f4\u63a5\u4f7f\u7528\u4f9d\u8d56\u3002\u6240\u4ee5\u5f88\u660e\u663e\u4e5f\u662f\u4e3a\u4e86\u89e3\u8026\uff0c\u53c2\u8003\u4e0bwiki\u7684\u56fe\uff0c\u4e86\u89e3\u5927\u6982\u5206\u7c7b\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-1024x235.png\" alt=\"\" class=\"wp-image-6191\" width=\"556\" height=\"127\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-1024x235.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-300x69.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-768x177.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-1536x353.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-830x191.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-230x53.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-350x80.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19-480x110.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-19.png 1810w\" sizes=\"(max-width: 556px) 100vw, 556px\" \/><\/figure><\/div>\n\n\n\n<p>Spring\u7684\u4f9d\u8d56\u6ce8\u5165\u5c31\u662f\u4e0d\u9700\u8981\u50cf\u4f20\u7edf\u7684\u65b9\u5f0f\u6765new\u4f60\u9700\u8981\u4f7f\u7528\u7684\u5bf9\u8c61\uff0c\u800c\u662f\u901a\u8fc7spring\u6839\u636e\u5bf9\u8c61\u95f4\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u7531\u5bb9\u5668\u6765\u4e3a\u4f60\u81ea\u52a8\u521b\u5efa\u5bf9\u8c61\uff0c\u5b9e\u73b0\u4e86\u5bf9\u8c61\u95f4\u7684\u89e3\u8026\u3002<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>Spring IOC\u521b\u5efa\u5bf9\u8c61\u548c\u5728new\u521b\u5efa\u5bf9\u8c61\u7684\u533a\u522b<\/strong><\/h5>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u4f7f\u7528new<\/strong><\/p>\n\n\n\n<p>\u4ee5\u4e1a\u52a1\u5c42\u548c\u6301\u4e45\u5c42\u6765\u4e3e\u4f8b,\u4f7f\u7528new\u65f6,\u5728Servicce\u5c42\u9700\u8981\u5f15\u7528dao\u5c42:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">Public class ServiceImpl{\n\n  Dao dao = new MysqlDaoImpl();\n\n  dao.xx();\n\n}<\/pre>\n\n\n\n<p>\u5f53\u9879\u76ee\u60f3\u66f4\u6362oracle\u6570\u636e\u5e93\u65f6\uff0c\u5c31\u9700\u8981\u6539\u53d8serviceImpl\u5c42\u7684\u4ee3\u7801\u4e3a new OracleDaoImpl()\uff0c\u9700\u8981\u6539\u52a8\u4ee3\u7801,\u5f53\u5f15\u7528\u6b64\u4ee3\u7801\u7684\u7c7b\u591a\uff0c\u5de5\u4f5c\u91cf\u4f1a\u975e\u5e38\u5927\u3002<\/p>\n\n\n\n<p><strong>Spring IOC \u521b\u5efa\u5bf9\u8c61<\/strong><\/p>\n\n\n\n<p>springioc\u4f9d\u8d56\u6ce8\u5165\uff0c\u5728serviceImpl\u7c7b\u4e2d\u521b\u5efaDao\u5c5e\u6027,\u5728\u521b\u5efa\u5bf9\u8c61\u65f6\u53ef\u4ee5\u4f7f\u7528set\u6216\u8005\u6709\u53c2\u6784\u9020\u65b9\u6cd5\u5c06dao\u6ce8\u5165\u8fdb\u53bb\u3002\u5728spring\u521b\u5efaService\u5bf9\u8c61\u65f6\u53d1\u73b0\u4f9d\u8d56\u4e86dao\uff0c\u4f1a\u5148\u53bb\u521b\u5efadao\u5bf9\u8c61,\u6b64\u65f6dao\u7684class\u91cc\u7684\u662f&#8221;com.dao.daoImpl.DaoImpl&#8221;\uff0c\u5f53service\u9700\u8981\u6362\u6570\u636e\u5e93\u65f6\uff0c\u53ef\u4ee5\u5c06class\u8def\u5f84\u66f4\u6539\uff0c\u5b9e\u73b0\u89e3\u8026\u5408\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-1024x298.png\" alt=\"\" class=\"wp-image-6192\" width=\"614\" height=\"178\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-1024x298.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-300x87.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-768x223.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-830x241.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-230x67.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-350x102.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20-480x140.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-20.png 1382w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-1024x415.png\" alt=\"\" class=\"wp-image-6193\" width=\"623\" height=\"252\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-1024x415.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-300x122.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-768x311.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-830x337.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-230x93.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-350x142.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21-480x195.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/07\/\u56fe\u7247-21.png 1376w\" sizes=\"(max-width: 623px) 100vw, 623px\" \/><\/figure><\/div>\n\n\n\n<h5 class=\"wp-block-heading\">Spring \u901a\u8fc7\u6ce8\u89e3\u4f9d\u8d56\u6ce8\u5165<\/h5>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u5728Spring <a rel=\"noreferrer noopener\" href=\"https:\/\/so.csdn.net\/so\/search?q=IoC&amp;spm=1001.2101.3001.7020\" target=\"_blank\">IoC<\/a>\u4e2d\u4e3b\u8981\u63d0\u4f9b\u4e86\u4e24\u4e2a\u6ce8\u89e3\u7528\u4e8ebean\u7684\u521b\u5efa\u548c\u5c5e\u6027\u7684\u6ce8\u5165\uff0c\u5373<code>@Component<\/code>\u548c<code>@Autowired<\/code>\u3002<\/p>\n\n\n\n<p>\u2460\u8fd9\u91cc@Component\u7528\u5728\u7c7b\u58f0\u660e\u4e0a\uff0c\u7528\u4e8e\u544a\u77e5Spring\uff0c\u6bd4\u5982\u5f53\u524d\u521b\u5efa\u7684UserDaoImp\u7c7b\u4e2d\uff0c\u5728\u540e\u7eed\u7684\u4f7f\u7528\u4e2d\uff0c\u80af\u5b9a\u662f\u4f1a\u9700\u8981UserDaoImp\u7c7b\u7684\u5b9e\u4f8b\u5bf9\u8c61\u7684\uff0c\u6240\u4ee5\u73b0\u5728\u63d0\u4f9b\u9700\u8981\u4e3a\u5f53\u524dUserDaoImp\u7c7b\u521b\u5efa\u4e00\u4e2a\u5b9e\u4f8b\uff08\u9ed8\u8ba4\u5355\u4f8b\u6a21\u5f0f\u521b\u5efa\u5b9e\u4f8b\u5bf9\u8c61\uff09\uff0c\u5b9e\u4f8b\u540d\u9ed8\u8ba4\u4e3a\u5f53\u524d\u7c7b\u540d\u9996\u5b57\u6bcd\u5c0f\u5199\u7684\u5f62\u5f0f\uff0c\u6240\u4ee5@Component\u5c31\u662f\u5728\u901a\u77e5Spring\u4f60\u8981\u9884\u5148\u7ed9\u8fd9\u4e2a\u7c7b\u5b9e\u4f8b\u5316\uff0c\u6240\u4ee5\u63a5\u53e3\u4e0e\u62bd\u8c61\u7c7b\u4e0d\u80fd\u4f7f\u7528\u8fd9\u4e2a\u6ce8\u89e3\uff0c\u56e0\u4e3a\u4ed6\u4eec\u6ca1\u6cd5\u5b9e\u4f8b\u5316\u5bf9\u8c61\u3002<\/p>\n\n\n\n<p><code><strong>\u2461<\/strong>\u800c@Autowired<\/code>\u5219\u7528\u5728\u5c5e\u6027\u4e0a\uff0cSpring\u68c0\u6d4b\u5230\u8be5\u6ce8\u89e3\u4e4b\u540e\u5c31\u4f1a\u5728IoC\u5bb9\u5668\u4e2d\u67e5\u627e\u662f\u5426\u6709\u4e0e\u8be5\u5c5e\u6027\u76f8\u5339\u914d\u7684\u7c7b\u6216\u5b50\u7c7b\u5b9e\u4f8b\uff0c\u6709\u7684\u8bdd\u5c31\u6ce8\u5165\u5230\u5f53\u524d\u5c5e\u6027\u4e2d\uff0c\u5426\u5219\u5c31\u4f1a\u62a5\u9519\u3002\u4f8b\u5982\uff0c\u5728UserService\u7c7b\u4e2d\uff1a<br><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    @Autowired  \/\/\u6839\u636e\u7c7b\u578b\u8fdb\u884c\u6ce8\u5165\n    private UserDaoImp userdaoImp;   \/\/\u4e3a\u4e86\u533a\u5206\u5b9e\u4f8b\u5316\u5bf9\u8c61\uff0c\u6240\u4ee5\u5c06\u8fd9\u91cc\u5c06\u5b57\u6bcdD\u6539\u4e3a\u5c0f\u5199<\/pre>\n\n\n\n<p>\u6b64\u65f6\u5728userDaoImp\u5c5e\u6027\u4e0a\u6807<code>@Autowired<\/code>\uff0c\u610f\u5473\u7740Spring\u5728\u770b\u5230\u8be5\u5c5e\u6027\u540e\uff0c\u4f1a\u5230IOC\u5bb9\u5668\u4e2d\u5bfb\u627e\u662f\u5426\u5b58\u5728UserDaoImp\u7c7b\u7684\u5b9e\u4f8b\u5316\u5bf9\u8c61\uff0c\u4e0a\u9762\u8bf4\u5230\u901a\u8fc7<code>@Component<\/code>\u5df2\u7ecf\u521b\u5efa\u4e86\u4e00\u4e2a\u5b9e\u4f8buserDaoImp\uff0c\u6240\u4ee5\u5c06\u6b64\u5b9e\u4f8b\u5316\u5bf9\u8c61\u8d4b\u503c\u7ed9userdaoImp\uff0c\u5373\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">UserDaoImp userdaoImp = userDaoImp;<\/pre>\n\n\n\n<p>\u8fd9\u4e2a\u8d4b\u503c\u7684\u8fc7\u7a0b\u5c31\u88ab\u79f0\u4e3a\u5c5e\u6027\u7684\u201c\u6ce8\u5165\u201d\u3002<\/p>\n\n\n\n<p>\u00a0UserDao\u63a5\u53e3\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    public interface UserDao {\n        public void info();\n    }<\/pre>\n\n\n\n<p>UserDaoImp\u5b9e\u73b0\u7c7b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@Component\npublic class UserDaoImp implements UserDao {\n    @Override\n    public void info() {\n        System.out.println(\"info()..............\");\n    }\n}<\/pre>\n\n\n\n<p>UserService\u7c7b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/\/\u6ce8\u89e3\u4e2dvalue\u7684\u9ed8\u8ba4\u503c\u4e3aUserService\u7684\u9996\u5b57\u6bcd\u4e3a\u5c0f\u5199\uff0c\u4e5f\u5c31\u662fuserService\n@Service(value = \"userService\") \/\/\u6b64\u5904\u7b49\u540c\u4e8exml\u914d\u7f6e\u4e2d\u7684&lt;bean id=\"userService\",class=\"com.maweirdos.service.UserService\"\/>\npublic class UserService {\n    @Autowired  \/\/\u6839\u636e\u7c7b\u578b\u8fdb\u884c\u6ce8\u5165\n    @Qualifier(value = \"userDaoImp\")    \/\/\u6839\u636ename\u540d\u79f0\u8fdb\u884c\u6ce8\u5165\n    private UserDaoImp userDaoImp;\n    public void Add(){\n        System.out.println(\"add()..............\");\n        userDaoImp.info();\n    }\n}<\/pre>\n\n\n\n<p>\u6d4b\u8bd5\u7c7b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@Test\n    public void test(){\n        ApplicationContext context = new ClassPathXmlApplicationContext(\"bean1.xml\");\n        UserService userService = context.getBean(\"userService\", UserService.class);\n        userService.Add();\n    }<\/pre>\n\n\n\n<p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">add()..............\ninfo()..............<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 \u5148\u4e86\u89e3\u4e0b\u63a7\u5236\u53cd\u8f6c&#8212;\u8f6c\u81ea\u77e5\u4e4e\u7684\u56fd\u54e5 \u5982\u679c\u4e00\u4e2a\u7c7bA \u7684\u529f\u80fd\u5b9e\u73b0\u9700\u8981\u501f\u52a9\u4e8e\u7c7bB\uff0c\u90a3\u4e48\u5c31\u79f0\u7c7bB\u662f\u7c7bA [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,27],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/6189"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6189"}],"version-history":[{"count":4,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/6189\/revisions"}],"predecessor-version":[{"id":6196,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/6189\/revisions\/6196"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}