Autoconfiguation core annotations in Spring boot

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.