{"id":103,"date":"2024-05-28T18:21:43","date_gmt":"2024-05-28T10:21:43","guid":{"rendered":"https:\/\/www.tqazy.com\/?p=103"},"modified":"2024-05-28T18:21:43","modified_gmt":"2024-05-28T10:21:43","slug":"component","status":"publish","type":"post","link":"https:\/\/www.tqazy.com\/?p=103","title":{"rendered":"@Component"},"content":{"rendered":"<h1>@Component<\/h1>\n<h2>\u6982\u5ff5<\/h2>\n<p><code>@Component<\/code> \u662fSpring\u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u6ce8\u89e3\uff0c\u5c5e\u4e8eSpring\u7684\u6838\u5fc3\u6ce8\u89e3\u4e4b\u4e00\u3002<\/p>\n<p>\u5b83\u7528\u4e8e\u6807\u8bb0\u4e00\u4e2aJava\u7c7b\u4e3aSpring\u4e2d\u7684Bean\u7ec4\u4ef6\uff0c\u8868\u660e\u8be5\u7c7b\u5c06\u7531Spring IoC\u5bb9\u5668\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n<p>Spring\u901a\u8fc7\u626b\u63cf\u52a0\u4e86 <code>@Component<\/code> \u6ce8\u89e3\u7684\u7c7b\uff0c\u5e76\u81ea\u52a8\u5c06\u5176\u6ce8\u518c\u4e3aBean\uff0c\u4f7f\u5f97\u8fd9\u4e9b\u7c7b\u80fd\u591f\u88ab\u5176\u4ed6Bean\u901a\u8fc7\u4f9d\u8d56\u6ce8\u5165\u7684\u65b9\u5f0f\u4f7f\u7528\u3002<\/p>\n<h2>\u901a\u4fd7\u8bf4\u6cd5<\/h2>\n<p>\u60f3\u8c61Spring\u6846\u67b6\u662f\u4e2a\u5927\u578b\u7684\u7ec4\u88c5\u5de5\u5382\uff0c\u800c\u4f60\u7684\u9879\u76ee\u4e2d\u6709\u8bb8\u591a\u96f6\u4ef6\uff08\u7c7b\uff09\u3002<\/p>\n<p><code>@Component<\/code> \u5c31\u50cf\u662f\u8d34\u5728\u96f6\u4ef6\u4e0a\u7684\u6807\u7b7e\uff0c\u544a\u8bc9\u5de5\u5382\uff1a\u201c\u563f\uff0c\u6211\u662f\u6709\u7528\u7684\u4e1c\u897f\uff0c\u8bb0\u5f97\u628a\u6211\u7ec4\u88c5\u8d77\u6765\uff01\u201d<\/p>\n<p>Spring\u5de5\u5382\u5728\u751f\u4ea7\u4ea7\u54c1\uff08\u5e94\u7528\u8fd0\u884c\uff09\u524d\uff0c\u4f1a\u67e5\u770b\u6240\u6709\u8d34\u6709 <code>@Component<\/code> \u6807\u7b7e\u7684\u96f6\u4ef6\uff0c\u7136\u540e\u81ea\u52a8\u628a\u5b83\u4eec\u5b89\u6392\u597d\u4f4d\u7f6e\uff0c\u786e\u4fdd\u5176\u4ed6\u96f6\u4ef6\u9700\u8981\u65f6\u80fd\u8f7b\u677e\u627e\u5230\u5e76\u4f7f\u7528\u5b83\u4eec\u3002<\/p>\n<h2>\u6240\u5c5e<\/h2>\n<blockquote>\n<p>import org.springframework.stereotype;<\/p>\n<\/blockquote>\n<h2>\u4f5c\u7528<\/h2>\n<ul>\n<li><strong>\u81ea\u52a8\u68c0\u6d4b\u548c\u6ce8\u518cBean\uff1a<\/strong> \u4f7f\u5f97Spring\u80fd\u591f\u81ea\u52a8\u53d1\u73b0\u5e76\u6ce8\u518c\u88ab\u6807\u8bb0\u7684\u7c7b\u4e3aBean\uff0c\u51cf\u5c11\u4e86XML\u914d\u7f6e\u3002<\/li>\n<li><strong>\u4f9d\u8d56\u6ce8\u5165\uff1a<\/strong> \u4f7f\u88ab\u6807\u8bb0\u7684\u7c7b\u80fd\u591f\u4f5c\u4e3a\u4f9d\u8d56\u88ab\u5176\u4ed6Bean\u6ce8\u5165\uff0c\u4fc3\u8fdb\u677e\u8026\u5408\u548c\u6a21\u5757\u5316\u5f00\u53d1\u3002<\/li>\n<li><strong>\u7ec4\u4ef6\u5206\u7c7b\uff1a<\/strong> \u867d\u7136 <code>@Component<\/code> \u662f\u901a\u7528\u7684\uff0c\u4f46Spring\u8fd8\u63d0\u4f9b\u4e86\u5982 <code>@Service<\/code>\u3001<code>@Repository<\/code>\u3001<code>@Controller<\/code>\u7b49\u66f4\u5177\u4f53\u7684\u7ec4\u4ef6\u6ce8\u89e3\uff0c\u5b83\u4eec\u672c\u8d28\u4e0a\u90fd\u662f <code>@Component<\/code> \u7684\u7279\u5316\uff0c\u4fbf\u4e8e\u6309\u7167\u529f\u80fd\u5bf9Bean\u8fdb\u884c\u5206\u7c7b\u3002<\/li>\n<\/ul>\n<h2>\u7528\u6cd5<\/h2>\n<p>\u5728\u7c7b\u58f0\u660e\u4e4b\u524d\u6dfb\u52a0 <code>@Component<\/code> \u6ce8\u89e3\uff1a<\/p>\n<pre><code class=\"language-java\">import org.springframework.stereotype.Component;\n\n@Component\npublic class MyComponent {\n    \/\/ \u7c7b\u7684\u5b9e\u73b0\u7ec6\u8282\n}<\/code><\/pre>\n<h2>\u4f7f\u7528\u573a\u666f<\/h2>\n<ul>\n<li><strong>\u4efb\u4f55\u9700\u8981\u88abSpring\u7ba1\u7406\u7684\u7c7b\uff1a<\/strong> \u5305\u62ec\u670d\u52a1\u5c42\uff08Service\uff09\u3001\u6570\u636e\u8bbf\u95ee\u5c42\uff08DAO\/Repository\uff09\u3001\u5de5\u5177\u7c7b\u6216\u5176\u4ed6\u8f85\u52a9\u7ec4\u4ef6\u3002<\/li>\n<li><strong>\u57fa\u4e8e\u6ce8\u89e3\u7684\u914d\u7f6e\u73af\u5883\uff1a<\/strong> \u5c24\u5176\u5728\u91c7\u7528Spring Boot\u6216\u907f\u514dXML\u914d\u7f6e\u65f6\uff0c<code>@Component<\/code> \u53ca\u5176\u884d\u751f\u6ce8\u89e3\u6210\u4e3a\u5b9a\u4e49Bean\u7684\u4e3b\u8981\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<h2>\u4f7f\u7528\u793a\u4f8b<\/h2>\n<p><strong>\u5b9a\u4e49\u4e00\u4e2a\u7b80\u5355\u7ec4\u4ef6\uff08MyComponent.java\uff09<\/strong><\/p>\n<pre><code class=\"language-java\">import org.springframework.stereotype.Component;\n\n@Component\npublic class MyComponent {\n    public String sayHello() {\n        return &quot;Hello, Spring!&quot;;\n    }\n}<\/code><\/pre>\n<p><strong>\u4f7f\u7528\u8be5\u7ec4\u4ef6\uff08AnotherClass.java\uff09<\/strong><\/p>\n<pre><code class=\"language-java\">import org.springframework.beans.factory.annotation.Autowired;\nimport org.springframework.stereotype.Component;\n\n@Component\npublic class AnotherClass {\n    private final MyComponent myComponent;\n\n    @Autowired\n    public AnotherClass(MyComponent myComponent) {\n        this.myComponent = myComponent;\n    }\n\n    public void displayMessage() {\n        System.out.println(myComponent.sayHello());\n    }\n}<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>MyComponent<\/code> \u88ab\u6807\u8bb0\u4e3a\u4e00\u4e2aSpring\u7ec4\u4ef6\uff0c\u800c <code>AnotherClass<\/code> \u901a\u8fc7\u6784\u9020\u5668\u6ce8\u5165\u7684\u65b9\u5f0f\u4f7f\u7528\u4e86 <code>MyComponent<\/code>\u3002<\/p>\n<p>\u5f53Spring\u542f\u52a8\u5e76\u626b\u63cf\u5230\u8fd9\u4e24\u4e2a\u7c7b\u65f6\uff0c\u4f1a\u81ea\u52a8\u521b\u5efa\u5b83\u4eec\u7684\u5b9e\u4f8b\uff0c\u5e76\u5c06 <code>MyComponent<\/code> \u7684\u5b9e\u4f8b\u6ce8\u5165\u5230 <code>AnotherClass<\/code> \u4e2d\uff0c\u5b9e\u73b0\u4e86\u4f9d\u8d56\u7684\u81ea\u52a8\u7ba1\u7406\u3002<\/p>\n<h2>@Component &amp; @Bean<\/h2>\n<p><code>@Component<\/code> \u548c <code>@Bean<\/code> \u90fd\u662fSpring\u6846\u67b6\u4e2d\u7528\u4e8e\u5b9a\u4e49\u548c\u7ba1\u7406Bean\u7684\u6ce8\u89e3\uff0c\u5b83\u4eec\u670d\u52a1\u4e8e\u9762\u5411\u5207\u9762\u7f16\u7a0b\uff08AOP\uff09\u548c\u4f9d\u8d56\u6ce8\u5165\uff08DI\uff09\u673a\u5236\uff0c\u65e8\u5728\u7b80\u5316\u914d\u7f6e\u548c\u63d0\u5347\u5e94\u7528\u7684\u6a21\u5757\u5316\u7a0b\u5ea6\u3002<\/p>\n<h3>1\u3001\u7528\u6cd5\u533a\u522b<\/h3>\n<p><strong>@Component:<\/strong><\/p>\n<ul>\n<li>\u901a\u5e38\u7528\u4e8e\u7c7b\u7ea7\u522b\uff0c\u6807\u8bb0\u4e00\u4e2a\u7c7b\u4f5c\u4e3aSpring\u7684Bean\u7ec4\u4ef6\u3002<\/li>\n<li>\u901a\u8fc7\u7c7b\u8def\u5f84\u626b\u63cf\uff08\u5982 <code>@ComponentScan<\/code> \uff09\u81ea\u52a8\u53d1\u73b0\u5e76\u6ce8\u518c\u5230Spring\u5bb9\u5668\u4e2d\u3002<\/li>\n<li>\u66f4\u9002\u7528\u4e8e\u5e94\u7528\u5185\u90e8\u81ea\u5df1\u7f16\u5199\u7684\u7c7b\uff0c\u5c24\u5176\u662f\u90a3\u4e9b\u6784\u6210\u5e94\u7528\u6838\u5fc3\u4e1a\u52a1\u903b\u8f91\u7684\u7c7b\u3002<\/li>\n<\/ul>\n<p><strong>@Bean:<\/strong><\/p>\n<ul>\n<li>\u901a\u5e38\u7528\u4e8e\u65b9\u6cd5\u7ea7\u522b\uff0c\u5728\u914d\u7f6e\u7c7b\u4e2d\u5b9a\u4e49\u4ea7\u751fBean\u5b9e\u4f8b\u7684\u903b\u8f91\u3002<\/li>\n<li>\u65b9\u6cd5\u4f53\u4e2d\u53ef\u4ee5\u5305\u542b\u521b\u5efaBean\u5b9e\u4f8b\u7684\u5177\u4f53\u8fc7\u7a0b\uff0c\u5305\u62ec\u521d\u59cb\u5316\u8bbe\u7f6e\u7b49\u3002<\/li>\n<li>\u9002\u5408\u4e8e\u5c06\u7b2c\u4e09\u65b9\u5e93\u7684\u7c7b\u8f6c\u6362\u4e3aSpring\u7ba1\u7406\u7684Bean\uff0c\u6216\u8005\u9700\u8981\u66f4\u591a\u5b9a\u5236\u5316\u914d\u7f6e\u7684\u60c5\u51b5\u3002<\/li>\n<li>\u9700\u8981\u5728\u914d\u7f6e\u7c7b\u4e2d\u663e\u5f0f\u58f0\u660e\u548c\u4f7f\u7528\u3002<\/li>\n<\/ul>\n<h3>2\u3001\u4f5c\u7528\u533a\u522b<\/h3>\n<ul>\n<li><code>@Component<\/code> \u5f3a\u8c03\u7684\u662f\u81ea\u52a8\u53d1\u73b0\u548c\u6ce8\u518c\uff0c\u7b80\u5316\u4e86Bean\u7684\u5b9a\u4e49\u8fc7\u7a0b\uff0c\u9002\u7528\u4e8e\u5927\u91cf\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u7684\u6279\u91cf\u6ce8\u518c\u3002<\/li>\n<li><code>@Bean<\/code> \u5219\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\u548c\u63a7\u5236\u6743\uff0c\u5141\u8bb8\u5f00\u53d1\u8005\u7cbe\u786e\u63a7\u5236Bean\u7684\u521b\u5efa\u8fc7\u7a0b\uff0c\u5305\u62ec\u5b9e\u4f8b\u5316\u3001\u4f9d\u8d56\u6ce8\u5165\u4ee5\u53ca\u914d\u7f6e\u7b49\uff0c\u9002\u7528\u4e8e\u590d\u6742\u6216\u7279\u6b8a\u914d\u7f6e\u9700\u6c42\u7684Bean\u5b9a\u4e49\u3002<\/li>\n<\/ul>\n<h3>\u603b\u7ed3<\/h3>\n<p>\u7b80\u800c\u8a00\u4e4b\uff0c<\/p>\n<p><code>@Component<\/code> \u662f\u57fa\u4e8e\u7ea6\u5b9a\u4f18\u4e8e\u914d\u7f6e\u7684\u539f\u5219\uff0c\u7b80\u5316\u4e86\u7ec4\u4ef6\u7684\u6ce8\u518c\u8fc7\u7a0b\uff0c\u9002\u7528\u4e8e\u5e94\u7528\u5185\u90e8\u7ec4\u4ef6\u7684\u6279\u91cf\u7ba1\u7406\u3002<\/p>\n<p><code>@Bean<\/code> \u5219\u63d0\u4f9b\u4e86\u66f4\u7ec6\u7c92\u5ea6\u7684\u63a7\u5236\uff0c\u9002\u7528\u4e8e\u9700\u8981\u660e\u786e\u6307\u5b9aBean\u521b\u5efa\u8fc7\u7a0b\u548c\u914d\u7f6e\u7684\u573a\u666f\uff0c\u7279\u522b\u662f\u5904\u7406\u5916\u90e8\u4f9d\u8d56\u6216\u590d\u6742\u903b\u8f91\u65f6\u3002<\/p>\n<p>\u4e24\u8005\u5404\u6709\u4f18\u52bf\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6ce8\u89e3\u6765\u5b9a\u4e49\u548c\u7ba1\u7406Bean\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>@Component \u6982\u5ff5 @Component \u662fSpring\u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u6ce8\u89e3\uff0c\u5c5e\u4e8eSpring\u7684\u6838\u5fc3\u6ce8\u89e3\u4e4b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[43],"class_list":["post-103","post","type-post","status-publish","format-standard","hentry","category-42","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>@Component | \u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tqazy.com\/?p=103\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"@Component | \u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"@Component \u6982\u5ff5 @Component \u662fSpring\u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u6ce8\u89e3\uff0c\u5c5e\u4e8eSpring\u7684\u6838\u5fc3\u6ce8\u89e3\u4e4b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tqazy.com\/?p=103\" \/>\n<meta property=\"og:site_name\" content=\"\u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-28T10:21:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/oss.tqazy.com\/wordpress\/autoFile\/2024\/05\/20240530090910445.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u9676\u5176\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9676\u5176\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.tqazy.com\/?p=103#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.tqazy.com\/?p=103\"},\"author\":{\"name\":\"\u9676\u5176\",\"@id\":\"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e\"},\"headline\":\"@Component\",\"datePublished\":\"2024-05-28T10:21:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.tqazy.com\/?p=103\"},\"wordCount\":60,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e\"},\"keywords\":[\"\u6ce8\u89e3\"],\"articleSection\":[\"\u6ce8\u89e3\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.tqazy.com\/?p=103#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.tqazy.com\/?p=103\",\"url\":\"https:\/\/www.tqazy.com\/?p=103\",\"name\":\"@Component | \u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"https:\/\/www.tqazy.com\/#website\"},\"datePublished\":\"2024-05-28T10:21:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.tqazy.com\/?p=103#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.tqazy.com\/?p=103\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.tqazy.com\/?p=103#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.tqazy.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"@Component\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tqazy.com\/#website\",\"url\":\"https:\/\/www.tqazy.com\/\",\"name\":\"\u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2\",\"description\":\"\u5f53\u4e0b\uff0c\u5373\u662f\u672a\u6765\",\"publisher\":{\"@id\":\"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e\"},\"alternateName\":\"TaoQi's Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tqazy.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e\",\"name\":\"\u9676\u5176\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.tqazy.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/oss.tqazy.com\/wordpress\/autoFile\/2024\/06\/20240604021741672.jpg\",\"contentUrl\":\"https:\/\/oss.tqazy.com\/wordpress\/autoFile\/2024\/06\/20240604021741672.jpg\",\"width\":940,\"height\":940,\"caption\":\"\u9676\u5176\"},\"logo\":{\"@id\":\"https:\/\/www.tqazy.com\/#\/schema\/person\/image\/\"},\"description\":\"\u4e00\u4e2a\u5f88\u61d2\u7684\u7a0b\u5e8f\u5458\",\"sameAs\":[\"https:\/\/www.tqazy.com\"],\"url\":\"https:\/\/www.tqazy.com\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"@Component | \u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tqazy.com\/?p=103","og_locale":"zh_CN","og_type":"article","og_title":"@Component | \u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2","og_description":"@Component \u6982\u5ff5 @Component \u662fSpring\u6846\u67b6\u4e2d\u7684\u4e00\u4e2a\u6ce8\u89e3\uff0c\u5c5e\u4e8eSpring\u7684\u6838\u5fc3\u6ce8\u89e3\u4e4b [&hellip;]","og_url":"https:\/\/www.tqazy.com\/?p=103","og_site_name":"\u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2","article_published_time":"2024-05-28T10:21:43+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/oss.tqazy.com\/wordpress\/autoFile\/2024\/05\/20240530090910445.jpg","type":"image\/jpeg"}],"author":"\u9676\u5176","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9676\u5176","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.tqazy.com\/?p=103#article","isPartOf":{"@id":"https:\/\/www.tqazy.com\/?p=103"},"author":{"name":"\u9676\u5176","@id":"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e"},"headline":"@Component","datePublished":"2024-05-28T10:21:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tqazy.com\/?p=103"},"wordCount":60,"commentCount":0,"publisher":{"@id":"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e"},"keywords":["\u6ce8\u89e3"],"articleSection":["\u6ce8\u89e3"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tqazy.com\/?p=103#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.tqazy.com\/?p=103","url":"https:\/\/www.tqazy.com\/?p=103","name":"@Component | \u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2","isPartOf":{"@id":"https:\/\/www.tqazy.com\/#website"},"datePublished":"2024-05-28T10:21:43+00:00","breadcrumb":{"@id":"https:\/\/www.tqazy.com\/?p=103#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.tqazy.com\/?p=103"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.tqazy.com\/?p=103#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.tqazy.com\/"},{"@type":"ListItem","position":2,"name":"@Component"}]},{"@type":"WebSite","@id":"https:\/\/www.tqazy.com\/#website","url":"https:\/\/www.tqazy.com\/","name":"\u9676\u5176\u7684\u4e2a\u4eba\u535a\u5ba2","description":"\u5f53\u4e0b\uff0c\u5373\u662f\u672a\u6765","publisher":{"@id":"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e"},"alternateName":"TaoQi's Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tqazy.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/www.tqazy.com\/#\/schema\/person\/b2e89d56e70f15c261012417c5ef2c4e","name":"\u9676\u5176","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.tqazy.com\/#\/schema\/person\/image\/","url":"https:\/\/oss.tqazy.com\/wordpress\/autoFile\/2024\/06\/20240604021741672.jpg","contentUrl":"https:\/\/oss.tqazy.com\/wordpress\/autoFile\/2024\/06\/20240604021741672.jpg","width":940,"height":940,"caption":"\u9676\u5176"},"logo":{"@id":"https:\/\/www.tqazy.com\/#\/schema\/person\/image\/"},"description":"\u4e00\u4e2a\u5f88\u61d2\u7684\u7a0b\u5e8f\u5458","sameAs":["https:\/\/www.tqazy.com"],"url":"https:\/\/www.tqazy.com\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/www.tqazy.com\/index.php?rest_route=\/wp\/v2\/posts\/103","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tqazy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tqazy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tqazy.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tqazy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=103"}],"version-history":[{"count":0,"href":"https:\/\/www.tqazy.com\/index.php?rest_route=\/wp\/v2\/posts\/103\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tqazy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=103"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tqazy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=103"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tqazy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=103"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}