📜  当 bean 存在时,如何指示自动配置退出? - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:50.747000             🧑  作者: Mango

代码示例1
To instruct an auto-configuration class to back off when a bean exists, you have to use the @ConditionalOnMissingBean annotation. The attributes of this annotation are as follows:

value: This attribute stores the type of beans to be checked
name: This attribute stores the name of beans to be checked