Wiley Beginning Spring Framework 2 978-0-470-10161-2 Manual De Usuario

Los códigos de productos
978-0-470-10161-2
Descargar
Página de 28
All About Spring
Spring started its life as a body of sample code that Rod Johnson featured in his 2002 Wrox Press book
Expert One on One Java J2EE Design and Development (ISBN: 1861007841). The book was published during
the height of J2EE popularity. Back in those days, the conventionally accepted way to create a serious
enterprise Java application was to use Java 2 Enterprise Edition 1.3/1.4 and create complex software
components called Enterprise JavaBeans (EJBs) following the then-current EJB 2.specifications. 
Appendix B, “Spring and Java EE,” provides more insight into how the Spring framework differs from
and improves upon Java EE. 
Although popular, creating component-based Java server applications using J2EE was not a fun activity.
Constructing EJBs and creating applications out of EJBs are complex processes that involve a lot of tedious
coding and require the management of a large body of source code — even for small projects.
Rod’s description of a lightweight container that can minimize the complexity of a server-side applica-
tion construction was a breath of fresh air to the stuffy J2EE development community. Spring — in con-
junction with simple yet groundbreaking concepts such as dependency injection (discussed later in this
chapter) — captured the imagination of many Java server developers.
Around this body of code was born an active Internet-based development community. The community
centered around Rod’s company’s website (
interface21.com/
) , and the associated Spring framework
website (
springframework.org/).
Adoption of the framework continues to rise worldwide as Rod and his group continue to develop the
framework and as more and more developers discover this practical and lightweight open-source alter-
native to J2EE. The software framework itself has also grown considerably, supported by an industry of
third-party software add-on components. 
Focus on Simplicity
By 2007, version 2 of the Spring framework was released, and the use of the Spring framework in lieu of
J2EE for server-side enterprise application development is no longer a notion, but a daily reality practiced
throughout the world. Spring’s focus on clean separation and decoupling of application components, its
lightweight philosophy, and its fanatic attitude toward reducing development complexity have won it a
permanent place in the hearts and minds of Java enterprise developers.
Spring has had such a major impact on the developer community that the Java Enterprise Edition expert
group actually had to revisit its design. In Java EE 5, the complexity involved in creating EJBs has been
greatly reduced in response to infamous user complaints. Many of J2EE’s lightweight principles and
approaches, including dependency injection, evolved over time.
Applying Spring
As you will discover shortly, creating applications using the Spring Framework is all about gathering
reusable software components and then assembling them to form applications. This action of assembling
components is called wiring in Spring, drawn from the analogy of electronic hardware components. The
2
Chapter 1: Jump Start Spring 2
01612c01.qxd:WroxPro  10/31/07  10:42 AM  Page 2