{"id":340,"date":"2023-02-25T06:53:19","date_gmt":"2023-02-24T22:53:19","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=340"},"modified":"2023-04-30T14:49:14","modified_gmt":"2023-04-30T06:49:14","slug":"purpose-of-annotate-autoconfigurebefore-and-autoconfigureafter","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/purpose-of-annotate-autoconfigurebefore-and-autoconfigureafter\/","title":{"rendered":"\u6ce8\u89e3 @AutoConfigureBefore \u548c @AutoConfigureAfter \u7684\u7528\u9014"},"content":{"rendered":"<h2>\u4ecb\u7ecd<\/h2>\n<p><code>@AutoConfigureBefore<\/code>\u548c<code>@AutoConfigureAfter<\/code>\u662f <code>spring-boot-autoconfigure<\/code> \u5305\u4e0b\u7684\u6ce8\u89e3<\/p>\n<h2>\u7528\u9014<\/h2>\n<p><!-- more --><\/p>\n<p>\uff081\uff09<code>@AutoConfigureBefore(AAAA.class)<\/code>\u6216<code>AutoConfigureBefore({AAAA.class, BBBB.class})<\/code><\/p>\n<pre><code class=\"language-java\">@AutoConfigureBefore(AAAA.class)\npublic class CCCC {\n}<\/code><\/pre>\n<p>\u8bf4\u660e CCCC \u5c06\u4f1a\u5728 AAAA \u4e4b\u524d\u52a0\u8f7d<\/p>\n<p>\uff082\uff09<code>@AutoConfigureAfter(AAAA.class)<\/code>\u6216<code>AutoConfigureAfter({AAAA.class, BBBB.class})<\/code><\/p>\n<pre><code class=\"language-java\">@AutoConfigureAfter(AAAA.class)\npublic class CCCC {\n}<\/code><\/pre>\n<p>\u8bf4\u660e CCCC \u5c06\u4f1a\u5728 AAAA \u4e4b\u540e\u52a0\u8f7d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ecb\u7ecd @AutoConfigureBefore\u548c@AutoConfigureAfter\u662f spring-boo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-340","post","type-post","status-publish","format-standard","hentry","category-spring-boot"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/340","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=340"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/340\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=340"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=340"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=340"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}