Spring Foundations
The container that runs everything.
The heart of the whole ecosystem: the IoC container, beans and their lifecycle, dependency injection, configuration, profiles, and aspect-oriented programming. Master these and the rest of Spring clicks into place.
Lessons in this stage
- 01
Why Spring & the Ecosystem
IntermediateWhat problem Spring solves, how the framework and Boot relate, and a map of the whole ecosystem you're about to learn.
14 min - 02
Inversion of Control & the Container
IntermediateThe idea at Spring's core: hand control of object creation to a container, and let it wire your application together.
16 min - 03
Beans, Scopes & the Lifecycle
IntermediateWhat a bean actually is, the scopes it can live in, and the lifecycle callbacks from instantiation to destruction.
16 min - 04
Dependency Injection in Depth
IntermediateConstructor, setter, and field injection; resolving ambiguity with @Qualifier and @Primary; and why constructor injection wins.
18 min - 05
Configuration & Component Scanning
IntermediateDeclaring beans with @Configuration and @Bean, component scanning with stereotypes, and how the two styles combine.
16 min - 06
Properties, Profiles & the Environment
IntermediateExternalize configuration with properties, bind it to typed objects, and switch behavior per environment with profiles.
16 min - 07
Aspect-Oriented Programming
AdvancedFactor out cross-cutting concerns like logging, security, and transactions with aspects, advice, and Spring's proxies.
18 min
Ready to test yourself?
Take the stage assessment to check your mastery. Pass it to earn a stage badge toward your Javaneer certificate.