Importorg.springframework.boot.autoconfigure.condition.*; @ConditionalOnBean//when the container has the specified bean in the condition@ConditionalOnClass//when the class path has the specified class under the condition@ConditionalOnExpression//based on Spel expression as the judging condition@ConditionalOnJava//based on the JVM version as the judging condition@ConditionalOnJndi//find the specified location under the conditions of Jndi presence@ConditionalOnMissingBean//when a bean is not specified in the container@ConditionalOnMissingClass//when the container does not have the specified class in the condition@ConditionalOnNotWebApplication//The current project is not under the condition of a Web project@ConditionalOnProperty//Specifies whether the property has the specified value@ConditionalOnResource//whether the classpath has a specified value@ConditionalOnSingleCandidate//when the specified bean has only one in the container, or although there are multiple but specified preferred beans@ConditionalOnWebApplication//The current project is under the condition of a Web project
Autoconfiguation core annotations in Spring boot