application context

The running Spring container: the object that holds every bean for an application and manages their creation and shutdown.

In more detail

SpringApplication.run creates the context at startup; when it closes, destruction callbacks run. Tests can start a full context or a small slice of it. Changing profiles changes what the context contains, which is why a profile switch needs a restart.

Related terms

Taught in

References