万本电子书0元读

万本电子书0元读

顶部广告

Spring 5.0 Cookbook电子书

售       价:¥

34人正在读 | 0人评论 9.8

作       者:Sherwin John Calleja Tragura

出  版  社:Packt Publishing

出版时间:2017-09-27

字       数:85.3万

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

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
Over 100 hands-on recipes to build web applications easily and efficiently IN Spring 5.0 About This Book ? Solve real-world problems using the latest features of the Spring framework like Reactive Streams and the Functional Web Framework. ? Learn how to use dependency injection and aspect-oriented programming to write compartmentalized and testable code. ? Understand when to choose between Spring MVC and Spring Web Reactive for your projects Who This Book Is For Java developers who would like to gain in-depth knowledge of how to overcome problems that they face while developing great Spring applications. It will also cater to Spring enthusiasts, users and experts who need an arena for comparative analysis, new ideas and inquiries on some details regarding Spring 5.0 and its previous releases. A basic knowledge of Spring development is essential What You Will Learn ? Understand how functional programming and concurrency in JDK 1.9 works, and how it will affect Spring 5.0 ? Learn the importance and application of reactive programming in creating services, and also the process of creating asynchronous MVC applications ? Implement different Spring Data modules ? Integrate Spring Security to the container ? Create applications and deploy using Spring Boot ? Conceptualize the architecture behind Microservices and learn the details of its implementation ? Create different test cases for the components of Spring 5.0 components In Detail The Spring framework has been the go-to framework for Java developers for quite some time. It enhances modularity, provides more readable code, and enables the developer to focus on developing the application while the underlying framework takes care of transaction APIs, remote APIs, JMX APIs, and JMS APIs. The upcoming version of the Spring Framework has a lot to offer, above and beyond the platform upgrade to Java 9, and this book will show you all you need to know to overcome common to advanced problems you might face. Each recipe will showcase some old and new issues and solutions, right from configuring Spring 5.0 container to testing its components. Most importantly, the book will highlight concurrent processes, asynchronous MVC and reactive programming using Reactor Core APIs. Aside from the core components, this book will also include integration of third-party technologies that are mostly needed in building enterprise applications. By the end of the book, the reader will not only be well versed with the essential concepts of Spring, but will also have mastered its latest features in a solution-oriented manner. Style and Approach This book follows a cookbook style approach, presenting a problem and showing you how to overcome it with useful recipes. The examples provided will help you code along as you learn.
目录展开

Title Page

Copyright

Spring 5.0 Cookbook

Credits

About the Author

About the Reviewer

www.PacktPub.com

Why subscribe?

Customer Feedback

Preface

What this book covers

What you need for this book

Who this book is for

Sections

Getting ready

How to do it…

How it works…

There's more…

See also

Conventions

Reader feedback

Downloading the example code

Downloading the color images of this book

Errata

Piracy

Questions

Getting Started with Spring

Installing Java Development Kit 1.8

Getting started

How to do it...

How it works...

Installing Tomcat 9 and configuring HTTP/2

Getting started

How to do it...

How it works...

Installing STS Eclipse 3.8 IDE

Getting started

How to do it...

How it works...

Creating Eclipse projects using Maven

Getting started

How to do it...

How it works...

Creating Spring STS Eclipse projects using Gradle

Getting started

How to do it...

How it works...

Deploying Spring projects using Maven

Getting started

How to do it...

How it works...

Deploying Spring projects using Gradle

Getting started

How to do it...

How it works...

Installing the MySQL 5.7 database server

Getting started

How to do it...

How it works...

Installing the MongoDB 3.2 database server

Getting started

How to do it...

How it works...

Learning Dependency Injection (DI)

Implementing a Spring container using XML

Getting started

How to do it...

How it works...

Implementing a Spring container using JavaConfig

Getting started

How to do it...

How it works...

Managing beans in an XML-based container

Getting started

How to do it...

How it works...

Managing beans in the JavaConfig container

Getting started

How to do it...

How it works...

Creating Singleton and Prototype beans

Getting started

How to do it...

How it works...

Defining eager and lazy spring beans

Getting started

How to do it...

How it works...

Creating an inner bean

Getting started

How to do it...

How it works...

Injecting Collections and Properties

Getting started

How to do it...

How it works...

Creating a Spring MVC using an XML-based approach

Getting started

How to do it...

How it works...

Creating a Spring MVC using the JavaConfig approach

Getting started

How to do it...

How it works...

Generating multiple ApplicationContexts

Getting started

How to do it...

How it works...

Using ResourceBundleMessageSource for Views

Getting started

How to do it...

How it works...

Implementing MVC Design Patterns

Creating the simple @Controller

Getting started

How to do it...

How it works...

Creating a simple @Controller with method-level URL mapping

Getting started

How to do it...

How it works...

Designing a simple form @Controller

Getting started

How to do it...

How it works...

Creating a multi-action @Controller

Getting started

How to do it...

How it works...

Form validation and parameter type conversion

Getting started

How to do it...

How it works...

Creating request- and session-scoped beans

Getting started

How to do it...

How it works...

Implementing page redirection and Flash-scoped beans

Getting started

How to do it...

How it works...

Creating database connection pooling

Getting started

How to do it...

How it works...

Implementing the DAO layer using the Spring JDBC Framework

Getting Started

How to do it...

How it works...

Creating a service layer in an MVC application

Getting started

How to do it...

How it works...

Securing Spring MVC Applications

Configuring Spring Security 4.2.2

Getting started

How to do it...

How it works...

Mapping sessions to channels and ports

Getting started

How to do it...

How it works...

Customizing the authentication process

Getting started

How to do it...

How it works...

Implementing authentication filters, login success, and failure handlers

Getting started

How to do it...

How it works...

Creating user details

Getting started

How to do it...

How it works...

Generating encrypted passwords

Getting started

How to do it...

How it works...

Applying Security to MVC methods

Getting started

How to do it...

How it works...

Creating roles and permissions from the database

Getting started

How to do it...

How it works...

Managing and storing sessions

Getting started

How to do it...

How it works...

Solving Cross-Site Request Forgery (CSRF) and session fixation attacks

Getting started

How to do it...

How it works...

Solving Cross-Site Scripting (XSS) and clickjacking attacks

Getting started

How to do it...

How it works...

Creating interceptors for login data validation

Getting started

How to do it...

How it works...

Cross-Cutting the MVC

Logging and auditing service methods

Getting started

How to do it...

How it works...

Managing DAO transactions

Getting started

How to do it...

How it works...

Monitoring services and request handlers

Getting started

How to do it...

How it works...

Validating parameters and arguments

Getting started

How to do it...

How it works...

Managing exceptions

Getting started

How to do it...

How it works...

Implementing the caching mechanism

Getting started

How to do it...

How it works...

Intercepting request transactions

Getting started

How to do it...

How it works...

Implementing user authentication

Getting started

How to do it...

How it works...

Accessing with restrictions

Getting started

How to do it...

How it works...

Controlling concurrent user access

Getting started

How to do it...

How it works...

Implementing a mini-workflow using AOP

Getting started

How to do it...

How it works...

Functional Programming

Implementing lambda expressions using anonymous inner classes

Getting started

How to do it...

How it works...

Implementing lambda expression using @FunctionInterface

Getting started

How to do it...

How it works...

Applying the built-in functional interfaces

Getting started

How to do it...

How it works...

Applying method and constructor references

Getting started

How to do it...

How it works...

Using the Stream API

Getting started

How to do it...

How it works...

Applying streams to collections

Getting started

How to do it...

How it works...

Applying streams to NIO 2.0

Getting started

How to do it...

How it works...

Using parallel streams

Getting started

How to do it...

How it works...

Reactive Programming

Applying the observer design pattern using Reactive Streams

Getting started

How to do it...

How it works...

Creating Mono<T> and Flux<T> publishers

Getting started

How to do it...

How it works...

Implementing the Subscriber<T> interface

Getting ready

How to do it...

How it works...

Applying backpressure to Mono<T> and Flux<T>

Getting ready

How to do it...

How it works...

Managing task executions using Schedulers

Getting ready

How to do it...

How it works...

Creating concurrent and parallel emissions

Getting ready

How to do it...

How it works...

Managing continuous data emission

Getting ready

How to do it...

How it works...

Implementing Stream manipulation and transformation

Getting ready

How to do it...

How it works...

Testing Reactive data transactions

Getting ready

How to do it...

How it works...

Implementing Reactive events using RxJava 2.x

Getting ready

How to do it...

How it works...

Reactive Web Applications

Configuring the TaskExecutor

Getting started

How to do it...

How it works...

SimpleAsyncTaskExecutor

ThreadPoolTaskExecutor

ConcurrentTaskExecutor

Implementing @Async services

Getting started

How to do it...

How it works...

Creating asynchronous controllers

Getting started

How to do it...

How it works...

Creating @Scheduled services

Getting started

How to do it...

How it works...

Using Future<T> and CallableFuture<T>

Getting started

How to do it...

How it works...

Using Mono<T> and Flux<T> publishers for services

Getting started

How to do it...

How it works...

Creating Mono<T> and Flux<T> HTTP response

Getting started

How to do it...

How it works...

Integrating RxJava 2.0

Getting started

How to do it...

How it works...

Using FreeMarker to render Publisher<T> stream

Getting started

How to do it...

How it works...

Using Thymeleaf to render a Publisher<T> stream

Getting started

How to do it...

How it works...

Applying security on TaskExecutors

Getting started

How to do it...

How it works...

Spring Boot 2.0

Building a non-reactive Spring MVC application

Getting started

How to do it...

How it works...

Configuring Logging

Getting started

How to do it...

How it works...

Adding JDBC Connectivity

Getting started

How to do it...

How it works...

Building a reactive Spring MVC application

Getting started

How to do it...

How it works...

Configuring Spring Security 5.x

Getting started

How to do it...

How it works...

Using reactive view resolvers

Getting started

How to do it...

How it works...

Using RouterFunction and HandlerFunction

Getting started

How to do it...

How it works...

Implementing Spring Data with JPA

Getting started

How to do it...

How it works...

Implementing REST services using @RestController and Spring REST

Getting started

How to do it...

How it works...

Applying Spring Cache

Getting started

How to do it...

How it works...

The Microservices

Exposing RESTful services in Spring 5

Getting started

How to do it...

How it works...

Using the actuator REST endpoints

Getting started

How to do it...

How it works...

Building a client-side application with RestTemplate, AsyncRestTemplate and, WebClient

Getting started

How to do it...

How it works...

Configuring the Eureka server for service registration

Getting started

How to do it...

How it works...

Implementing the Eureka service discovery and client-side load balancing

Getting started

How to do it...

How it works...

Applying resiliency to client applications

Getting started

How to do it...

How it works...

Consuming endpoints using a declarative method

Getting started

How to do it...

How it works...

Using Docker for deployment

Getting started

How to do it...

How it works...

Batch and Message-Driven Processes

Building synchronous batch processes

Getting started

How to do it...

How it works...

Implementing batch processes with a database

Getting started

How to do it...

How it works...

Constructing asynchronous batch processes

Getting started

How to do it...

How it works...

Building synchronous interprocess communication using AMQP

Getting started

How to do it...

How it works...

Creating asynchronous send-receive communication

Getting started

How to do it...

How it works...

Creating an event-driven asynchronous communication using AMQP

Getting started

How to do it...

How it works...

Creating stream communication with Spring Cloud Stream

Getting started

How to do it...

How it works...

Implementing batch processes using Spring Cloud Task

Getting started

How to do it...

How it works...

Other Spring 5 Features

Using Hibernate 5 object-relational mapping

Getting ready

How to do it...

How it works...

Applying Hazelcast distributed caching

Getting ready

How to do it...

How it works...

Building client-server communications with WebSocket

Getting ready

How to do it...

How it works...

Implementing Reactive WebSocket communication

Getting ready

How to do it...

How it works...

Implementing asynchronous Spring Data JPA properties

Getting ready

How to do it...

How it works...

Implementing Reactive Spring Data JPA repositories

Getting ready

How to do it...

How it works...

Using Spring Data MongoDB

Getting ready

How to do it...

How it works...

Building applications for big data storage

Getting ready

How to do it...

How it works...

Building a Spring 5 application using Kotlin

Getting ready

How to do it...

How it works...

Testing Spring 5 Components

Creating tests for Spring MVC components

Getting ready

How to do it...

How it works...

Building standalone controller tests

Getting ready

How to do it...

How it works...

Creating tests for DAO and service layers

Getting ready

How to do it...

How it works...

Creating tests on secured applications

Getting ready

How to do it...

How it works...

Creating tests using Spring Boot 2.0

Getting ready

How to do it...

How it works...

Creating tests for Spring Data JPA

Getting ready

How to do it...

How it works...

Building tests for blocking, asynchronous and reactive RESTful services

Getting ready

How to do it...

How it works...

Building tests for Kotlin components

Getting ready

How to do it...

How it works...

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

发表评论

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

买过这本书的人还买过

读了这本书的人还在读

回顶部