CHAPTER 3

image

Applying Different Configurations

The Spring Framework supports different ways to configure its container and this chapter will cover the XML configuration used previously. Also, you are going to learn how can you accomplish the same configuration using different mechanisms, such as Spring annotations, Java bean configuration class, and the new GroovyBeanDefinitionReader class.

In the previous chapter, you defined your Spring application, My Documents, and you saw how to use a XML configuration file to inject your implementation of the SearchEngine interface. In this chapter, you will be using the same XML configuration and you will ...

Get Introducing Spring Framework: A Primer 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.