© Joseph B. Ottinger and Andrew Lombardi 2019
J. B. Ottinger, A. LombardiBeginning Spring 5https://doi.org/10.1007/978-1-4842-4486-9_3

3. Configuration and Declaration of Beans

Joseph B. Ottinger1  and Andrew Lombardi2
Laguna Beach, CA, USA

In this chapter, we’re going to explore a decent subset of Spring configuration, and we’re going to shift attention away from “Hello, World” into a simple application that will allow us to explore features and configuration. We’ll introduce the sample application first, then walk through a few different ways to configure it. There’s a lot of code here, much of it redundant on the surface, but we’ll use some base classes to help reduce the tendency to repeat ourselves.1

3.1 The Container ...

Get Beginning Spring 5: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.