官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 调兵山市| 镇沅| 商水县| 库车县| 和田县| 万盛区| 临江市| 昌都县| 望奎县| 隆子县| 新民市| 宜宾县| 千阳县| 宝丰县| 泰兴市| 浮山县| 建湖县| 菏泽市| 慈溪市| 周至县| 永定县| 根河市| 凉山| 满城县| 金塔县| 连平县| 会昌县| 和田市| 河间市| 三亚市| 新干县| 壤塘县| 来凤县| 昆明市| 泰安市| 任丘市| 论坛| 衢州市| 林州市| 揭阳市| 丁青县|