This article is a mirror article of machine translation, please click here to jump to the original article.

View: 20045|Reply: 0

[Source] Spring annotations for @AutoConfigureBefore and @AutoConfigureAfter

[Copy link]
Posted on 2021-11-11 16:57:41 | | |
The note is under the org.springframework.boot.autoconfigure package. Spring containers It initializes beans out of order, which Spring Boot provides us@AutoConfigureBefore@AutoConfigureAfter@AutoConfigureOrderAnnotations can control the order in which the program initiates the initial loading of the beans.
@AutoConfigureBefore Notes

Note: CCCC will load before AAAA

@AutoConfigureAfter Notes

Note: CCCC will load after AAAA

@AutoConfigureOrderIndicates absolute order (the smaller the number, the higher the priority)




Previous:Deploy the Elasticsearch service using Docker
Next:Jenkins (6) ThinBackup plug-in for data backup
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com