SPRING CONCEPTS
ApplicationContext
Spring Concepts / ApplicationContext
ApplicationContext is Spring’s container for bean configuration and access.
Understand the idea
It reads configuration, registers bean definitions, resolves dependencies, and manages their lifecycle. SpringApplication creates and initializes the context. The application’s configuration and package scanning determine which objects exist there.
A concrete example
@SpringBootApplication
public class TodoApplication { ... }In the application
The main class sits in com.example.todo so scanning discovers the classes under that package.
An annotation in an unscanned package may not register a bean. Missing collaborators can then prevent startup.
Detailed walkthrough: How Spring creates and connects objects →