Skip to Content
Spring Start Here
book

Spring Start Here

by Laurentiu Spilca
October 2021
Beginner
416 pages
11h 25m
English
Manning Publications
Content preview from Spring Start Here

2 The Spring context: Defining beans

This chapter covers

  • Understanding the need for Spring context
  • Adding new object instances to the Spring context

In this chapter, you start learning how to work with a crucial Spring framework element: the context (also known as the application context in a Spring app). Imagine the context as a place in the memory of your app in which we add all the object instances that we want the framework to manage. By default, Spring doesn’t know any of the objects you define in your application. To enable Spring to see your objects, you need to add them to the context. Later in this book we discuss using different capabilities provided by Spring in apps. You’ll learn that plugging in such features is done through ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Spring Boot in Action

Spring Boot in Action

Craig Walls
The Complete Java Developer Course: From Beginner to Master

The Complete Java Developer Course: From Beginner to Master

Codestars By Rob Percival, John P. Baugh

Publisher Resources

ISBN: 9781617298691Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link