
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Beginning Spring
About this book
Get up to speed quickly with this comprehensive guide to Spring
Beginning Spring is the complete beginner's guide to Java's most popular framework. Written with an eye toward real-world enterprises, the book covers all aspects of application development within the Spring Framework. Extensive samples within each chapter allow developers to get up to speed quickly by providing concrete references for experimentation, building a skillset that drives successful application development by exploiting the full capabilities of Java's latest advances.
Spring provides the exact toolset required to build an enterprise application, and has become the standard within the field. This book covers Spring 4.0, which contains support for Java 8 and Java EE 7. Readers begin with the basics of the framework, then go on to master the most commonly used tools and fundamental concepts inherent in any Spring project. The book emphasizes practicality and real-world application by addressing needs such as meeting customer demand and boosting productivity, and by providing actionable information that helps developers get the most out of the framework. Topics include:
- Dependency Injection and Inversion of Control
- Unit testing Spring enabled Web Applications
- Data Access using Spring JDBC and ORM support along with Transaction Management
- Building Web Applications and RESTful Web Services with Spring MVC
- Securing Web Applications using Spring Security
- Spring Expression Language with its Extensive Features
- Aspect Oriented Programming Facilities Provided by Spring AOP
- Caching with 3rd Party Cache Providers' Support
- The Best of the Breed: Spring 4.0
The information is organized and structured an ideal way for students and corporate training programs, and explanations about inner workings of the framework make it a handy desk reference even for experienced developers. For novices, Beginning Spring is invaluable as a comprehensive guide to the real-world functionality of Spring.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
1
POJO Programming Model, Lightweight Containers, and Inversion of Control
- Problems of the old EJB programming model that triggered the birth of POJO movement
- Advantages of the POJO programming model
- What a container is and what services it provides to its deployed applications
- Lightweight containers and what makes a container lightweight
- What Inversion of Control (IoC) means and its importance for applications
- Relationship between IoC and dependency injection
- Dependency injection methods, setter and constructor injection
- Advantages and disadvantages of those different dependency injection methods
POJO PROGRAMMING MODEL
Problems of the Old EJB Programming Model
public interface PetClinicService extends EJBObject { public void saveOwner(Owner owner) throws RemoteException; } public interface PetClinicServiceHome extends EJBHome { public PetClinicService create() throws RemoteException, CreateException; } public class PetClinicServiceBean implements SessionBean { private SessionContext sessionContext; public void ejbCreate() { } public void ejbRemove() { } public void ejbActivate() { } public void ejbPassivate() { } public void setSessionContext(SessionContext sessionContext) { this.sessionContext = sessionContext; } public void saveOwner() throws java.rmi.RemoteException { //implementation of saving owner instance... } } <ejb-jar> <display-name>PetClinicEJB2</display-name> <enterprise-beans> <session> <ejb-name>PetClinicService</ejb-name> <home>com.example.PetClinicServiceHome</home> <remote>com.example.PetClinicService</remote> <ejb-class>com.example.PetClinicServiceImpl</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> <resource-ref> <res-ref-name>jdbc/ds</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> </session> <message-driven> <ejb-name>MessageSubscriber...Table of contents
- Cover
- Foreword
- Introduction
- Chapter 1: POJO Programming Model, Lightweight Containers, and Inversion of Control
- Chapter 2: Dependency Injection with Spring
- Chapter 3: Building Web Applications Using Spring MVC
- Chapter 4: JDBC Data Access with Spring
- Chapter 5: Data Access with JPA Using Spring
- Chapter 6: Managing Transactions with Spring
- Chapter 7: Test-Driven Development with Spring
- Chapter 8: Aspect-Oriented Programming with Spring
- Chapter 9: Spring Expression Language
- Chapter 10: Caching
- Chapter 11: RESTful Web Services with Spring
- Chapter 12: Securing Web Applications with Spring Security
- Chapter 13: Next Stop: Spring 4.0
- Appendix: Solutions to Exercises
- Title Page
- Copyright
- Dedication
- About the Authors
- About the Technical Editor
- Credits
- Acknowledgments
- Index
- End User License Agreement