web123456

Spring Boot uses @ConditionalOnProperty to control whether the Configuration takes effect

Through its two propertiesnameas well ashavingValueto achieve, wherenameUsed fromRead a property value in it.
If the value is empty, return false;
If the value is not empty, the value is compared with the value specified by havingValue, and true if the same; otherwise, false.
If the return value is false, the configuration does not take effect; if true, it takes effect.