- Spring MVC:Beginner's Guide(Second Edition)
- Amuthan Ganeshan
- 707字
- 2021-07-14 10:49:41
What this book covers
Chapter 1, Configuring a Spring Development Environment, will give you a quick overview of Spring MVC and guide you with detailed notes of step-by-step instructions to set up your development environment. After installing the required prerequisites, you will try out a quick example of how to develop an application with Spring MVC. Although the chapter doesn’t explain all the code in detail, you’ll pick up a few things intuitively.
Chapter 2, Spring MVC Architecture – Architecting Your Web Store, lays down the ground work for the sample application that we are going to build along the way, chapter by chapter. This chapter will introduce you to concepts such as Request mapping, the web application context, Spring MVC request flow, and the layered architecture of a typical web application. You will also learn about how to set up the in-memory database for our sample application.
Chapter 3, Control Your Store with Controllers, will take you into the concept of controller; you will learn in detail about defining a controller, how to use URI Template Patterns, Matrix variables and Request parameters.
Chapter 4, Working with Spring Tag Libraries, will show you how to use Spring and Spring-form tag libraries in web form handling. You will learn how to bind the domain objects with the views. You will also learn how to use message bundles to externalize label caption texts. At the end of this chapter you will see how to add a login form.
Chapter 5, Working with View Resolver, teaches you the inner mechanics of how InternalResourceViewResolver
resolves a view and take you through how to use various view types such as redirect view and static view. You will also learn about Mutipart resolver and content negotiation view resolver. Finally, you will learn how to use Exception handler resolvers.
Chapter 6, Internalize Your Store with Interceptor, presents the concept of the interceptor to you; you will learn how to leverage the interceptor to handle or transform requests and responses flexibly. This chapter will teach you how to make your webpage to support internalization with the help of LocaleChangeInterceptor
. This chapter also introduces how to do audit logging in a log file using interceptor concept.
Chapter 7, Incorporating Spring Security, gives you an overview of how to incorporate Spring Security framework with Spring MVC. You will learn how to do simple authentication and authorization on a Spring MVC-based web application.
Chapter 8, Validate Your Products with a Validator, gives you an overview of validation concept. You will learn about bean validation, and you will learn how to perform custom validation along with the standard bean validation that bean validation. You will also learn about classic Spring validation and how to combine it with bean validation.
Chapter 9, Give REST to Your Application with Ajax, teaches you the basic principles of REST and Ajax, And you will learn how to develop application in RESTful services. The basic concept of HTTP verbs and how it is related to standard CRUD operations will be explained, and you will learn how to do fire Ajax requests and how to handle them from a web page.
Chapter 10, Float Your Application with Web Flow, will show you how to use Spring web flow to develop work flow-based web pages. You will learn more about states and transitions in web flow and how to define a flow definition.
Chapter 11, Template with Tiles, teaches you how to decompose a page using Apache tiles; you will learn more about TileViewResolver
and how to define reusable Apache tile templates.
Chapter 12, Testing Your Application, introduces how to leverage the Spring testing capability to test your controllers. You will learn how to load the test context and how to mock the service and repository layers. This chapter also introduces you to the Spring MVC test module and how to use it.
Appendix A, Using the Gradle Build Tool, introduces you to using the Gradle build tool for our sample application. You will learn about the Gradle script that is required to build our project using Gradle build tool.
Appendix B, Pop Quiz Answers, will provide you with the answers to the Pop quizsections in the book.
- Apache ZooKeeper Essentials
- 國際大學生程序設計競賽中山大學內部選拔真題解(二)
- Java 開發從入門到精通(第2版)
- 算法零基礎一本通(Python版)
- Java Web基礎與實例教程(第2版·微課版)
- Cocos2d-x游戲開發:手把手教你Lua語言的編程方法
- 數據庫系統原理及MySQL應用教程
- 羅克韋爾ControlLogix系統應用技術
- React.js Essentials
- jQuery Mobile移動應用開發實戰(第3版)
- 基于Struts、Hibernate、Spring架構的Web應用開發
- C語言程序設計習題與實驗指導
- QlikView Unlocked
- Three.js權威指南:在網頁上創建3D圖形和動畫的方法與實踐(原書第4版)
- UML基礎與Rose建模實用教程(第三版)