Loading tutorials
@SpringBootApplication annotation into a list of auto-configuration classes. It assumes you can write @Configuration and @Bean classes, run a basic Spring Boot application, and set values in application.properties. It u6 min read@Configuration and @Bean classes, run a Spring Boot application, and set properties in application.properties. You will learn the mechanism that every @ConditionalOn... annotation is built on. Once you know it, you can read any Boot condition and write your5 min read@ConditionalOnClass and @ConditionalOnMissingClass, how Spring Boot evaluates them without triggering class-loading errors, and the mistakes that cause `NoClassDefFoun6 min read@Configuration classes with @Bean methods and that you know what @ConditionalOnClass does. You should also know that Spring Boot loads auto-configuration classes from the AutoConfiguration.imports file. The chapter covers the condition that makes auto-confi6 min read@Configuration and @Bean classes, you know the @ConditionalOnClass and @ConditionalOnMissingBean annotations from the earlier chapters, and you have set values in application.properties. It covers the conditions that read the running environment: `@Condit5 min read@ConditionalOnClass, @ConditionalOnBean and @ConditionalOnMissingBean do, and that you can read a @Configuration class. The question here is when each condition runs. The answer explains two common surprises. @ConditionalOnBean can match in one project an6 min read@Configuration and @Bean classes, have run a basic Spring Boot application, and have read the earlier chapters on @Conditional, @ConditionalOnBean and @ConditionalOnMissingBean. Here you will see why the order in which auto-configurations are processed 5 min read@ConfigurationProperties, which binds groups of external settings to a typed Java object. This chapter assumes you know application.properties, @Bean methods, and the GreetingAutoConfiguration from the5 min read@Configuration and @Bean classes, run a basic Spring Boot application, and set values in application.properties. You also need to know what the conditions @ConditionalOnClass, @ConditionalOnMissingBean and @ConditionalOnProperty do. Earlier chapters cov5 min readAutoConfiguration.imports file. It also assumes you know the main @Conditional annotations, and that you can run a Spring Boot application from the command line. Here you will learn to answer the most common auto-conf6 min readapplication.properties, and you have read the earlier chapters on AutoConfiguration.imports, conditions, and the --debug conditions report. Here you learn how to remove an auto-configuration from processing, when that is the 6 min read@ConditionalOnClass, @ConditionalOnMissingBean, @ConditionalOnProperty, @ConfigurationProperties and ordering with @AutoConfiguration(before/after). You should also know JUnit 5 and AssertJ basics. Here you will test the `GreetingA4 min read