springboot通过@conditionalonxxx的先到先得,即先注册之后的就不会再注册了,因为后面的condition条件肯定不满足。
而如果没有通过@Conditionalonxxx,直接@bean或者@component声明的bean则会出现后面的beandefinition会override覆盖前面注册的beandefinition。
springboot通过@conditionalonxxx的先到先得,即先注册之后的就不会再注册了,因为后面的condition条件肯定不满足。
而如果没有通过@Conditionalonxxx,直接@bean或者@component声明的bean则会出现后面的beandefinition会override覆盖前面注册的beandefinition。