How does springboot implement automatic configuration?

Alibaba cloud Q & A 2022-02-13 09:16:18 阅读数:25

springboot implement automatic configuration

Springboot How to realize automatic configuration ?

Take the answer 1:

SpringBoot Automatic configuration of , Is actually dependent @Conditional To achieve [email protected] Is a conditional annotation , yes Spring4 A new feature provided , Used to control according to specific conditions Bean The creation behavior of .

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you.