What Is Spring, Part 1by Justin Gehtland, ,
coauthors of Spring: A Developer's Notebook
- Spring is a lightweight container, with wrappers that make it easy to use many different services and frameworks. Lightweight containers accept any JavaBean, instead of specific types of components.
"Spring is more than just a 'lightweight container,'" says Justin Gehtland. "It allows Java developers who are building J2EE apps to get to the heart of their real domain problems and stop spending so much time on the minutiae of providing services to their domain." Gehtland and Bruce Tate are coauthors of Spring: A Developer's Notebook, a no-nonsense book that will get you up to speed quickly on the new Spring open source framework. Spring: A Developer's Notebook includes examples and practical applications that demonstrate exactly how to use Spring, in ten chapters of code-intensive labs.
Today we'll feature the first of two chapters from the book, in our two-part series dubbed "What Is Spring." The series will help you understand how you can use Spring to produce simple, clean, and effective applications.
In this week's excerpt of Chapter 1, "Getting Started," authors Tate and Gehtland take a simple application and show you how to automate it and enable it for Spring. (In part 2 next week, the authors will cover how Spring can help in development of simple, clean, web-based UI's--excerpted from Chapter 2, "Building a User Interface.")
You can download Chapter 1 of Spring: A Developer's Notebook as a PDF. The file size is 355K.
Editor's Note: Chapter 1 was updated to correct issues in the first printing of the book. The version we're excerpting here matches the new edition, which has a black banner on the cover that reads "Updated." -- Tara McGoldrick
Justin Gehtland is a programmer, author, mentor and instructor, focusing on real-world software applications.
Return to ONJava.com.