CHAPTER 18

image

Spring and Groovy

So far, your Spring application has been dealing with XML files in order to help the Spring container create and instantiate your classes. In this chapter, you are going to change that by using Groovy to see how the new Spring Framework 4 plays nicely with it.

Grails, a web framework that uses Groovy as its primary language, is based on the Spring Framework, making it robust, extensible, and very easy to use.  Because Spring is the foundation of this framework, the Grails team did a great job introducing a new Spring DSL (domain-specific language) based entirely on Groovy.

One of the most powerful features of the ...

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.