万本电子书0元读

万本电子书0元读

顶部广告

Spring MVC Blueprints电子书

售       价:¥

15人正在读 | 0人评论 9.8

作       者:Sherwin John Calleja Tragura

出  版  社:Packt Publishing

出版时间:2016-07-01

字       数:927.3万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:此类商品不支持退换货,不支持下载打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Design and implement real-world web-based applications using the Spring Framework 4.x specification based on technical documentation About This Book . Learn all the details of implementing Spring 4.x MVC applications from basic core platform construction to advanced integration implementations. Gain a complete reference guide to implementing the controllers, models, views, view resolvers, and other service-related components to solve various real-world problems. Discover the possible optimal solutions for developers and experts to build enterprise and personal web-based applications. Create a Spring MVC application that has a validation process and exception handling with the HTTP status codes Who This Book Is For This book is for competent Spring developers who wish to understand how to develop complex yet flexible applications with Spring MVC. You must have a good knowledge of JAVA programming and be familiar with the basics of Spring. What You Will Learn . Set up and configure the Spring 4.x MVC platform from ground level up using the basic Spring Framework 4.x APIs. Study requirements and manage solutions on file uploading transactions in Spring 4.x applications Configure, , and test Spring integration to the Hibernate, MyBatis, and JPA frameworks for database transactions. Properly implement exception handlers and audit trails in Spring MVC applications. Generate reports using JFreeChart, Google Charts, JasperReports, DynamicReports, FreeMarker, Velocity, and Spring’s API known as ContentNegotiatingViewResolver. Configure security and flexibility by adding Captcha, Spring Security, Spring Flow, Spring Portlets, JTA to improve data management performance. Implement web services using Spring’s RESTful implementation and other service-oriented integration plugins. Design and implement a Spring 4.x application using AngularJS, ExtJs, Twitter Bootstrap, and Spring Mobile for responsive web design In Detail Spring MVC is the ideal tool to build modern web applications on the server side. With the arrival of Spring Boot, developers can really focus on the code and deliver great value, leveraging the rich Spring ecosystem with minimal configuration. Spring makes it simple to create RESTful applications, interact with social services, communicate with modern databases, secure your system, and make your code modular and easy to test. It is also easy to deploy the result on different cloud providers. This book starts all the necessary topics in starting a Spring MVC-based application. Moving ahead it explains how to design model objects to handle file objects. save files into a data store and how Spring MVC behaves when an application deals with uploading and downloading files. Further it highlights form transactions and the user of Validation Framework as the tool in validating data input. It shows how to create a customer feedback system which does not require a username or password to log in. It will show you the soft side of Spring MVC where layout and presentation are given importance. Later it will discuss how to use Spring Web Flow on top of Spring MVC to create better web applications. Moving ahead, it will teach you how create an Invoice Module that receives and transport data using Web Services By the end of the book you will be able to create efficient and flexible real-time web applications using all the frameworks in Spring MVC. Style and approach This book is a compendium of technical specification documents that will guide you through building an application using Spring 4.x MVC. Each chapter starts with a high-level wireframe design of the software followed by how to set up and configure different libraries and tools.
目录展开

Spring MVC Blueprints

Spring MVC Blueprints

Credits

About the Author

About the Reviewer

www.PacktPub.com

eBooks, discount offers, and more

Why subscribe?

Free access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Creating a Personal Web Portal (PWP)

Overview of the project

Technical requirements

Setting-up the development environment

Converting a dynamic web project to a Maven project

Creating a Maven project from scratch

The pom.xml file

Project deployment

Maven deployment process

Project libraries and dependencies

Overview of the Spring MVC specification

The project development

Configuring the DispatcherServlet

Creating the Spring container

Spring container configuration using XML

Spring container configuration using JavaConfig

Configuring the Spring container

Creating the controllers

The PWP controllers

Using @ModelAttribute and @SessionAttributes

Form domain objects

The ViewResolver and view configuration

Actual view pages

Validating Form Data

Validation using JSR 303

Domain data type conversion and filtering

E-mail configuration

The Personal Web Portal (PWP) project

Challenge yourself

Summary

2. Electronic Document Management Systems (EDMS)

Overview of the project

Technical requirement

The pom.xml

The process flow

The project development

Configuring the DispatcherServlet

Creating the Spring container

Creating exception handling for multipart requests

Creating the controllers

Uploading a single document

Uploading multiple documents

Uploading single or multiple documents into the FTP server

Uploading single or multiple files asynchronously

Uploading documents with encryption/decryption

Downloading individual documents from the file system

Downloading individual documents from the FTP server

The form domains

The views

The validators

The EDMS project

Challenge yourself

Summary

3. Student Management Portal (SMP)

An overview of the project

Technical requirements

Implementation A – using the Spring JDBC plugin

Implementation C – using Spring and MyBatis frameworks

Implementation B – using Spring and Hibernate frameworks

Implementation D – using Spring, JPA and Hibernate Frameworks

Software design overview

Configuring the DispatcherServlet

The SMP database

Creating the Spring containers

Implementation A – using a Spring JDBC plugin

jdbc.xml

dao_services.xml

smp_servlet.xml

Implementation B – using Spring and MyBatis frameworks

jdbc.xml

dao_services.xml

Implementation C – using Spring and Hibernate frameworks

jdbc.xml

hibernate.cfg.xml

Implementation D – using Spring, JPA and Hibernate frameworks

jdbc.xml

The persistence.xml

The Data Access Object (DAO) layer

Implementation A – using the Spring JDBC plugin

Implementation B – using Spring and MyBatis Frameworks

Implementation C – using Spring and Hibernate frameworks

Implementation D – using Spring, JPA and Hibernate frameworks

The service layer

Implementation A – using the Spring JDBC plugin

Implementation B – using Spring and MyBatis frameworks

Implementation C – using Spring and Hibernate frameworks

Implementation D – using Spring, JPA and Hibernate frameworks

The data domain layer

Implementation A – using a Spring JDBC plugin

Implementation B – using Spring and MyBatis frameworks

Implementation C – using Spring and Hibernate frameworks

Implementation D – using Spring, JPA and Hibernate frameworks

The controllers

The validators and type conversion

The interceptors

The Aspect, Advice and PointCut

The views

The Student Management Portal (SMP)

Challenge yourself

Summary

4. Human Resource Management System (HRMS)

Overview of the project

Technical requirements

iText 5.x

Apache POI

JExcelAPI

JasperReports

iReport 5.6.0 Visual Designer

DynamicReports

Freemarker Template Language (FTL)

Velocity

JFreeChart

Google Chart

ROME

Software testing libraries

The HRMS database

Data modeling framework

Integrating charts and graphs

Configuring the ViewResolver

The administrator's analytics

The DAO and service layers

The controllers

Line chart

XY line chart

2D bar chart

2D pie chart

Other JFreeChart graphs

The view pages

The HR manager's analytics

The DAO and service layers

The controllers

Line chart

Bar chart

Other Google Chart graphs

The view pages

Integrating reports

PDF document generation using iText 5.x

Excel sheet generation using POI

Excel sheet generation using JExcelAPI

Report generation using JasperReports

Report generation using DynamicReports

Report generation using ContentNegotiatingViewResolver

Generating reports using HTML

FreeMarker Template Language (FTL)

tbl_header.ftl

tbl_body.ftl

tbl_footer.ftl

Velocity

header.vm

footer.vm

Generating news feeds

RSS feeds

Atom Feeds

Handling exceptions

Software testing

Building the test class for unit testing

Building the test class for integration testing

Building the test class for MVC testing

JVM memory management

Client-side visualization

The Human Resource Management System (HRMS)

Challenge yourself

Summary

5. Customer Feedback System (CFS)

Overview of the project

Technical requirements

Captcha libraries

reCaptcha

BotDetect

JCaptcha

SimpleCaptcha

Kaptcha

SendGrid library

The CFS database

Data modeling framework

The Captcha

Posting topics and issues

Adding topics

The reCaptcha controller

The reCaptcha View

Editing topics

The BotDetect controller

The BotDetect view

Giving feedback

The Kaptcha controller

The Kaptcha view

Editing feedback

The SimpleCaptcha controller

The SimpleCaptcha view

E-mail Feedback

The JCaptcha controller

The JCaptcha view

The SendGrid service

The Customer Feedback System (CSF)

Challenge yourself

Summary

6. Hotel Management System (HMS)

Overview of the project

Technical Requirements

Angular JS

JQuery

Twitter Bootstrap

Kickstrap

ExtJS

Thymeleaf

Apache Tiles Framework

SiteMesh

Spring mobile

Spring Roo

The HMS Database

User Experience (UX) design issues

Adaptive web design

Responsive web design

Designing themes

Spring MVC theme support

The Spring Theme configuration

Kickstrap Theme Designs

Kickstrap configuration

Layout design types

Responsive design in Kickstrap

UI components styles

Theme support

Twitter Bootstrap theme design

Fixed grid layout design

Fluid grid layout design

Responsive layout design in Bootstrap

UI components styles

The Thymeleaf design

Configuration

Thymeleaf expressions

Layout and theme

Form handling using Thymeleaf

Rendering results

Internationalization support

Thymeleaf layout design with fragments

Creating intelligent web components

AngularJS

Configuration

The Angular module

ExtJS

The application container

The data model

The data store

The ExtJS view

Controller

The admin room type view

Creating web layouts

Apache tiles 3

Configuration

Creating the template file

Creating the definition file

Adaptive layout design in tiles

SiteMesh 3

Configuration

Creating the decorator

Adaptive layout design in SiteMesh

Spring's internationalization support

Configuration

Creating the resource bundles

The Controller

The View

Velocity, FreeMarker, and Rhythm

Advantage and disadvantage of Velocity

Advantage and disadvantage of FreeMarker

Advantage and disadvantage of Rythm

Spring mobile

Configuration

Device detection

URL Mapping

The Controller

Spring Roo

The Hotel Management System (HMS)

Challenge yourself

Summary

7. Online Cart System (OCS)

Overview of the project

Technical requirements

Spring security

BPMN Activiti

Spring Web Flow

Java Transaction API (JTA)

Bitronix

Spring MVC Portlet

Apache Pluto

JRebel

The OCS database

Data modeling framework

The software prototypes

Spring security implementation

Configuring the DelegatingFilterProxy

Creating the security beans

The <http> tag

The custom login page

Non-Restricted views

Restricted views

Roles and permissions

Types of web authorization

Authentication filter processing

Authentication manager

The UserDetailServiceDao

Password encoding

Authentication failure and success handlers

Session management

Session timeout

URL rewriting

Access denied page

Session fixation protection

Cross-site request forgery

Custom logout page

Post-login transaction

Transaction management using JTA

JTA manager and JEE servers

Tomcat and Bitronix configuration

JNDI configuration

Spring and JTA manager configuration

Bitronix transaction manager (BTM) and JTA

The persistence.xml

JTA DAO transactions

Tomcat 7 and BTM integration

Process and navigation management

Managing workflow using Activiti BPMN 2.0

Database configuration

Database transaction manager

BPMN 2.0 process definition

The process engine

Built-In Activiti services

The controllers

The services

Spring and BPMN layers

Managing workflow using Spring Web Flow

Web flow configuration

Web flow definition

View-states

State transitions

End states

Flow actions

Variable scopes

Spring MVC portlet

OCS as a portal

Controllers

Portlet modes

Portlet views

Application context configuration

Portlet configuration

Defining portlets as portal servlets

Apache Pluto deployment

Spring Cache

Types of cache

Configure caching

Ehcache.xml

Hot deployment using JRebel

Online Cart System (OCS)

Challenge yourself

Summary

8. Enterprise Resource Planning (ERP)

Overview of the project

Technical requirement

Spring Web Services

JAX-WS integration

JAX-RS integration

Jersey RS

RestEasy RS

CXF integration

Axis2 integration

XFire integration

HttpInvoker remoting

Burlap and Hessian remoting

Remote Method Invocation

JMS

Advanced Message Queuing Protocol

ActiveMQ

RabbitMQ

Spring Social

SoapUI

The ERP databases

Data modeling framework

Multiple JNDI data sources

The concept of web services

Consumer-producer relationship

The Spring REST architecture

The Spring-WS Framework

Contract-First versus Contract-Last strategies

Web service generation

Client code generation

JAX-WS

Web service generation (document-based)

Client code generation (document-based)

Web service generation (RPC based)

Client code generation (RPC based)

JAX-RS (RESTful) web services

Web service generation (Jersey)

Media type problem

Web service generation (RestEasy)

Axis2 web service implementation

Web service generation

Web client generation

CXF web service implementation

Web service generation

XFire web service implementation

Web service generation

Web client generation

HttpInvoker, Burlap, and Hessian remoting

Remoting through HttpInvoker

Accessing HttpInvoker services

Remoting through Burlap

Accessing Burlap services

Remoting through Hessian

Accessing Hessian services

Spring containers for remoting

Remote Method Invocation

JMS using ApacheMQ

AMQP using RabbitMQ

Spring Social

The ERP

Challenge yourself

Summary

9. Bus Ticketing System (BTS)

Overview of the project

Technical requirements

AJAX

jQuery

Prototype framework

Dojo

RestEasy AJAX

DWR

WebSocket

jQGrid

The BTS database

Data modeling framework

AJAX and Spring integration

Custom AJAX development

jQuery AJAX

Prototype AJAX

Dojo AJAX

RestEasy JSAPI

Direct web remoting

WebSocket

jQGrid

Google Chart visualization

The Bus Ticketing System (BTS)

Challenge yourself

Summary

10. Social Task Management System (STMS)

Overview of the project

Technical requirements

Spring Data JPA

Spring Data MongoDB

Spring Data REST

Spring Data Solr

Neo4J

Spring integration

Collaborative data analysis concept

Database configuration

Spring Data JPA configuration

Spring Data MongoDB configuration

Database search techniques

Document-based and full-text search

Configuring the Solr server

The Spring-Solr integration

The Spring-Neo4J integration

Configuring the Neo4J graph search server

Spring-Neo4J integration

Integration pitfalls

Codeless REST implementation

Enterprise integration architecture

Social task management system

Challenge yourself

Summary

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部