Loading tutorials
spring-context on your classpath. With Maven that means the org.springframework:spring-context dependency5 min readApplicationContext from earlier chapters. Here you will learn how to mark your own classes as beans and how Spri4 min readApplicationContext as the container that holds beans. You should also know that component scanning registers classes annotated with @Component or @Service. Here you will learn the second 6 min read@Component scanning and @Bean methods register beans. It covers what Spring does when a dependency could be satisfied by zero, one or several beans.5 min read@Component and @Bean, and how constructor injection works. It also assumes you have used an ApplicationContext to look up a bean. If those are new, review the earlier chapters first.6 min read@Component, @Bean), how constructor injection works, and what an ApplicationContext is. It also assumes you know the difference between singleton and prototype scope. Here you will see the steps Spring runs between creating a bean and discar5 min read@Component and @Bean, and that you know constructor injection. It also assumes you use Spring Boot 3 (Spring Framework 6, Java 17 or later), which is why the examples use jakarta.* packages and records. Plain Spring supports @Value and `@Propert5 min read@Component and @Bean, and that you know how the ApplicationContext builds singletons at startup. It also assumes you have seen @Primary and @Qualifier. Here you will learn how to make the set of beans in a context depend on the environment or 5 min read@Configuration with @Bean, and how @Primary and @Qualifier pick a candidate. It covers the errors you will meet when wiring fails, how to read them, and how to fix the cause5 min read@Configuration and @Bean, and profiles. Examples use Spring Framework 6, Sp5 min read