Loading tutorials
@Configuration classes with @Bean methods. You should also be able to run a simple Spring Boot application. You will look inside the one annotation that sits on almost every Boot main class and see 5 min read@Configuration classes with @Bean methods and can run a basic Spring Boot application. The previous chapters covered starters and @SpringBootApplication. This chapter f5 min read@Configuration classes with @Bean methods. It also assumes you have run a Spring Boot application. Earlier chapters showed that auto-configuration creates beans from the classpath. This chapter cove5 min readapplication.properties, environment variables, and the command line into typed Java objects, and how an auto-configuration uses them to expose safe defaults.6 min read@Configuration and @Bean work and what a bean type is. You should also have seen the earlier chapters on @SpringBootApplication, conditional annotations, and @ConfigurationProperties. Here you will learn the three ways to change what Boot configures for you,6 min read@SpringBootApplication triggers auto-configuration and how conditional annotations such as @ConditionalOnClass and @ConditionalOnMissingBean work. It also assumes you can start a Spring Boot application from Maven or Gradle. The earlier chapters explained why 6 min read@Configuration, @Bean, and how to run a Spring Boot application. It also assumes you have seen @SpringBootApplication and a conditional annotation such as @ConditionalOnMissingBean. The chapter covers how Boot finds auto-configuration classes, why a class6 min read@ConditionalOnClass, @ConditionalOnMissingBean, and @ConditionalOnBean work, and that you can register a class in AutoConfiguration.imports. It also assumes you have written a basic auto-configuration like the GreetingAutoConfiguration from earlier chapter6 min read@Configuration and @Bean, and basic Maven or Gradle usage. You should also have read the earlier chapters on conditional annotations, `@ConfigurationP5 min read@ConfigurationProperties, and writing a custom auto-configuration. It also assumes you know JUnit 5 and AssertJ basics. The examples test the GreetingAutoConfiguration built in that chapter.5 min readGreetingAutoConfiguration, GreetingProperties, GreetingService). It also assumes you know Maven's dependencyManagement and optional dependencies. Here you will package that code so another project c6 min read