Spring in Practice
Joshua White, Willie Wheeler
- 560 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Spring in Practice
Joshua White, Willie Wheeler
About This Book
Summary Spring in Practice shows you how to tackle the challenges you face when you build Spring-based applications. The book empowers software developers to solve concrete business problems by mapping application-level issues to Spring-centric solutions. It diverges from other cookbooks because it presents the background you need to understand the domain in which a solution applies before it offers the specific steps to solve the problem. About this Book Spring in Practice covers 66 Spring development techniques and the practical issues you will encounter when using them. The book starts with three carefully crafted introductory chapters to get you up to speed on the fundamentals. And then, the core of the book takes you step-by-step through the important, practical techniques you will use no matter what type of application you're building. You'll hone your Spring skills with examples on user accounts, security, NoSQL data stores, and application integration. Along the way, you'll explore Spring-based approaches to domain-specific challenges like CRM, configuration management, and site reliability. What's Inside
- Covers Spring 3
- Successful outcomes with integration testing
- Dozens of web app techniques using Spring MVC
- Practical examples and real-world context
- How to work effectively with data
Each technique highlights something new or interesting about Spring and focuses on that concept in detail. This book assumes you have a good foundation in Java and Java EE. Prior exposure to Spring Framework is helpful but not required.Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Authors Willie Wheeler is a Principal Applications Engineer with 16 years of experience in Java/Java EE and Spring Framework. Joshua White is a Solutions Architect in the financial and health services industries. He has worked with Spring Framework since its inception in 2002. Table of Contents
- Introducing Spring: the dependency injection container
- Data persistence, ORM, and transactions
- Building web applications with Spring Web MVC
- Basic web forms
- Enhancing Spring MVC applications with Web Flow
- Authenticating users
- Authorizing user requests
- Communicating with users and customers
- Creating a rich-text comment engine
- Integration testing
- Building a configuration management database
- Building an article-delivery engine
- Enterprise integration
- Creating a Spring-based "site-up" framework
Frequently asked questions
Information
Chapter 1. Introducing Spring: the dependency injection container
- Major functional areas of the Spring Framework
- Flexible configuration using dependency injection
- Wiring beans using XML
- Autowiring and component scanning using annotations
1.1. What is Spring, and why use it?
Figure 1.1. A high-level block diagram illustrating Springâs six basic functional areas
1.1.1. The major pieces of the framework
The Core Spring Container
Aspect-oriented programming (AOP)
Data Access/Integration
Web
Test
1.1.2. Why use it?
- Qualityâ From the overall design of the modules, packages, class structures, and APIs to the implementation and test coverage of the source code, the Spring Framework is a great example of high-quality open source software.
- Modularityâ As we mentioned earlier, the framework has evolved into roughly 20 modules, giving developers the freedom to choose which parts of the framework to use in their applications without the need to include the entire framework.
- Promotes best practicesâ Springâs plain old Java object (POJO)-based programming model promotes decoupled component models, unit testing, and other best practices.
- Modest learning curveâ Due to the consistency and simplicity of the APIs, Spring isnât hard to learn. As we make our way through the framework, youâll see that common patterns emerge. Plus, hundreds of resources online and in print are at your disposal, including message boards where the core developers often participate.
- Popularityâ As evidenced by myriad publications, websites, and job postings, the Spring Framework is almost ubiquitous.