Beginning Spring
Реклама. ООО «ЛитРес», ИНН: 7719571260.
Оглавление
Höller Jürgen. Beginning Spring
FOREWORD
FOREWORD
INTRODUCTION
WHO THIS BOOK IS FOR
WHAT THIS BOOK COVERS
WHAT YOU NEED TO RUN THE SAMPLES
CONVENTIONS
ERRATA
P2P.WROX.COM
1. POJO Programming Model, Lightweight Containers, and Inversion of Control
POJO PROGRAMMING MODEL
LIGHTWEIGHT CONTAINERS AND INVERSION OF CONTROL (IOC)
DEPENDENCY INJECTION
SUMMARY
2. Dependency Injection with Spring
SPRING IOC CONTAINER
DEPENDENCY INJECTION
SPRING-MANAGED BEANS
SUMMARY
3. Building Web Applications Using Spring MVC
LEARNING THE FEATURES AND BENEFITS OF SPRING MVC
USING THE DISPATCHER SERVLET MECHANISM
CREATING YOUR FIRST SPRING MVC APPLICATION
CONFIGURING SPRING MVC WITH ANNOTATIONS
HANDLING FORMS WITH JSP
EXPLOITING THE POWER OF ANNOTATIONS
VALIDATING USER INPUT
UPLOADING FILES
HANDLING EXCEPTIONS
IMPLEMENTING INTERNATIONALIZATION (I18N)
USING THEMES
SUMMARY
4. JDBC Data Access with Spring
PROBLEMS WITH USING VANILLA JDBC
INTRODUCING SPRING'S JDBC SUPPORT
PERFORMING DATA ACCESS OPERATIONS WITH SPRING
MODELING JDBC OPERATIONS AS JAVA OBJECTS
EXCEPTION HANDLING AND ERROR CODE TRANSLATION
SUMMARY
5. Data Access with JPA Using Spring
BRIEF INTRODUCTION TO ORM AND JPA
SPRING'S JPA SUPPORT
SUMMARY
6. Managing Transactions with Spring
UNDERSTANDING TRANSACTION MANAGEMENT
SPRING'S TRANSACTION ABSTRACTION MODEL
DECLARATIVE TRANSACTION MANAGEMENT WITH SPRING
PROGRAMMATIC TRANSACTION MANAGEMENT WITH SPRING
EXECUTING CUSTOM LOGIC BEFORE OR AFTER TRANSACTIONS
SUMMARY
7. Test-Driven Development with Spring
CONFIGURING AND CACHING APPLICATIONCONTEXT
INJECTING DEPENDENCIES OF TEST FIXTURES
USING TRANSACTION MANAGEMENT IN TESTS
TESTING WEB APPLICATIONS
USING MOCK OBJECTS AND OTHER UTILITIES FOR TESTING
SUMMARY
8. Aspect-Oriented Programming with Spring
GETTING STARTED WITH AOP IN SPRING
BECOMING FAMILIAR WITH TYPES OF ADVICES
DEFINING POINT-CUT DESIGNATORS
CAPITALIZING ON THE POWER OF ANNOTATIONS
BLENDING ASPECTJ WITH SPRING
CONFIGURING SPRING AOP WITH ANNOTATIONS
SUMMARY
9. Spring Expression Language
CONFIGURING APPLICATIONS WITH SPEL
CREATING A PARSER
INVOKING METHODS
WORKING WITH VARIABLES AND FUNCTIONS
UNDERSTANDING SPEL OPERATORS
USING UTILITIES IN SPEL
SUMMARY
10. Caching
BUILDING YOUR FIRST CACHING APPLICATION
WORKING WITH CACHE ANNOTATIONS
IMPLEMENTING CACHE MANAGERS
CASTING YOUR SPEL ON CACHES
INITIALIZING YOUR CACHES PROGRAMMATICALLY
FINDING ALTERNATIVE CACHE PROVIDERS
SUMMARY
11. RESTful Web Services with Spring
CREATING YOUR FIRST REST WEB SERVICE
RETURNING DIFFERENT HTTP STATUS CODES FROM REST WEB SERVICE
LEARNING AN ANNOTATION-BASED CONFIGURATION ALTERNATIVE
USING REST WEB SERVICES WITH XML
USING THE EXCEPTION HANDLING MECHANISM
UNIT TESTING RESTFUL SERVICES
SUMMARY
12. Securing Web Applications with Spring Security
WHY SPRING SECURITY?
FEATURES OF SPRING SECURITY
CONFIGURING AND USING SPRING SECURITY
UNDERSTANDING THE FUNDAMENTAL BUILDING BLOCKS OF SPRING SECURITY
AUTHENTICATING USERS
AUTHORIZING WEB REQUESTS AND SERVICE METHOD CALLS
SUMMARY
13. Next Stop: Spring 4.0
KEEPING UP WITH THE LATEST: JAVA 8 AND JAVA EE7 SUPPORT
CONFIGURING INJECTION WITH CONDITIONAL DEPENDENCY
ORDERING THE ELEMENTS OF AUTOWIRED COLLECTIONS
REPEATING ANNOTATIONS
INTRODUCING NEW ANNOTATIONS
SUMMARY
APPENDIX. Solutions to Exercises
CHAPTER 1
CHAPTER 2
CHAPTER 3
CHAPTER 4
CHAPTER 5
CHAPTER 6
CHAPTER 7
CHAPTER 8
CHAPTER 9
CHAPTER 10
CHAPTER 11
CHAPTER 12
CHAPTER 13
ABOUT THE AUTHORS
ABOUT THE TECHNICAL EDITOR
CREDITS
ACKNOWLEDGMENTS
Отрывок из книги
I have fond memories of Wrox books. The Spring story started 12 years ago from a Wrox book. Before that, I'd contributed chapters to several Wrox books and served as a reviewer on many others.
Some of these memories concern what the imprint has meant to me, but many relate to its philosophy and format, a key reason I was excited to become a Wrox author in 2000. The distinctive format offers an effective structure for imparting knowledge, encouraging the author to highlight important points, and promoting systematic explanation. It emphasizes practical code examples – the most valuable tool for teaching programming.
.....
How It Works
As for styles in the text:
.....