{"id":149082,"date":"2020-08-16T01:41:02","date_gmt":"2020-08-15T17:41:02","guid":{"rendered":"http:\/\/4563.org\/?p=149082"},"modified":"2020-08-16T01:41:02","modified_gmt":"2020-08-15T17:41:02","slug":"bean-%e7%9a%84-xml-%e6%96%87%e4%bb%b6%e4%b8%ad-%e5%8d%95%e6%a0%87%e7%ad%be%e5%92%8c%e4%b8%80%e5%af%b9%e6%a0%87%e7%ad%be%e6%9c%89%e5%8c%ba%e5%88%ab%e5%90%97%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=149082","title":{"rendered":"bean \u7684 xml \u6587\u4ef6\u4e2d \u5355\u6807\u7b7e\u548c\u4e00\u5bf9\u6807\u7b7e\u6709\u533a\u522b\u5417\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  bean \u7684 xml \u6587\u4ef6\u4e2d \u5355\u6807\u7b7e\u548c\u4e00\u5bf9\u6807\u7b7e\u6709\u533a\u522b\u5417\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gzk329 <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>    &lt;bean id=\"helloWorld\" class=\"com.gzk.HelloWorld\" scope=\"singleton\" &gt;         &lt;property name=\"message\" value=\"Hello World!\"\/&gt;     &lt;\/bean&gt;      &lt;bean class=\"com.gzk.InitHelloWorld\" \/&gt;  &lt;!--\u8fd9\u53e5\u8bdd\u4e0d\u52a0&lt;\/bean&gt; \u4e5f\u662f\u4e00\u4e2a initHelloWorld \u7c7b\u7684\u5bf9\u8c61\u7684\u610f\u601d\u5417\uff1f--&gt; <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3096743\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gzk329 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u662f\u4e0d\u662f\u8981\u52a0\u522b\u7684\u53c2\u6570\u7684\u65f6\u5019\u7528\u4e00\u5bf9\u6807\u7b7e\uff1f \u4e0d\u7136\u7684\u8bdd\u5c31\u53ef\u4ee5\u7701\u7565\uff1f <br \/>\u5982\u679c\u662f\u8fd9\u6837\u7684\u5316\u90a3\u662f\u6211\u50bb\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3096744\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : gzk329 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f46\u662f\u8fd9\u53e5\u8bdd\u8fde id \u90fd\u80fd\u7701\u6389\u4e86\u561b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3096745\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lxk11153 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. \u53ef\u4ee5\u7701\u7565\uff0c\u5982\u679c\u6ca1\u5b50\u6807\u7b7e<br \/>2. \u5c5e\u6027\u80fd\u5426\u7701\u7565\u4f60\u5f97\u770b\u5b9e\u73b0\u5440\uff0cspring-bean \u7684 id \u5b9e\u73b0\u662f\u6709\u9ed8\u8ba4 id \u751f\u6210\u7b56\u7565\u7684\uff0c\u9ed8\u8ba4\u662f\u7c7b\u540d+\u5e8f\u53f7\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3096746\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : stevenkang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u627e\u5230\u4e00\u70b9\u8d44\u6599\uff1a<br \/>https:\/\/www.w3.org\/standards\/xml\/core.html<\/p>\n<p>All elements must be closed or marked as empty.<\/p>\n<p>Empty elements can be closed as normal, &lt;happiness&gt;&lt;\/happiness&gt; or you can use a special short-form, &lt;happiness \/&gt; instead.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>bean \u7684 xml \u6587\u4ef6\u4e2d \u5355\u6807&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149082"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149082"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149082\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149082"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}