liveBook · Manning

Application context

Also called ApplicationContext, Spring context

A Spring application context is a container that creates, configures, and manages application components and their dependencies, and provides access to them.

How 3 Manning books explain it

Spring in Action, Sixth Edition

A Spring container that creates, configures, and manages an application's beans, dependencies, and runtime configuration.

How it is used
Manages application beans and supplies their dependencies as part of assembling a Spring application.
How deep it goes
Explains bean wiring and configuration approaches with service examples, plus context testing and development-time restarts.
Examples
Uses inventory and product services, a baseline context-loading test, and a web application configured with Thymeleaf.
What you can do after
Apply it with Spring Boot to declare and wire beans and check that the context loads.

Read how Spring in Action, Sixth Edition explains application context →

Testing Spring Boot Applications

Spring ApplicationContext is the Spring container that manages application components and provides access to configured beans.

How it is used
Provides configured beans for Spring Boot tests to exercise application behavior with test-specific changes.
How deep it goes
Explains context creation, lifecycle and bean access through testing annotations, without descending into ApplicationContext implementation internals.
Examples
Shows a mocked external validator and injected repository, plus a repository assertion after an HTTP request.
What you can do after
Operate/configure it with @SpringBootTest, @Autowired and selective overrides while avoiding unnecessary context variations.

Read how Testing Spring Boot Applications explains application context →

Kafka Streams in Action, Second Edition

A Spring application context is a container-managed registry of application objects and their configuration.

How it is used
Bootstraps and wires a non-web Spring Kafka application from configuration, components, dependencies, and listener declarations.
How deep it goes
Explains creation, scanning, injection, and listener wrapping, but stops short of container internals.
Examples
Uses a loan-processing application with annotated processors, injected KafkaTemplate, and approval, rejection, and quality-assurance topics.
What you can do after
Operate/configure a Spring Kafka application by starting its context and wiring annotated components and listeners.

Read how Kafka Streams in Action, Second Edition explains application context →

Also covered in

Related concepts

Questions about application context

What is application context?

A Spring application context is a container that creates, configures, and manages application components and their dependencies, and provides access to them.

Which Manning books explain application context?

Spring in Action, Sixth Edition, Testing Spring Boot Applications and Kafka Streams in Action, Second Edition.

What should I know before learning application context?

Manning books that teach application context usually introduce Java first.

What are the parts of application context?

Application context includes Spring bean.

What is application context also called?

Application context is also called ApplicationContext or Spring context.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.