Spring 5.0 cookbook recipes to build, test, and run spring applications efficiently

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 progr...

Descripción completa

Detalles Bibliográficos
Otros Autores: Tragura, Sherwin John Calleja, author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham, England ; Mumbai, [India] : Packt Publishing 2017.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630678806719
Tabla de Contenidos:
  • Cover
  • Copyright
  • Credits
  • About the Author
  • About the Reviewer
  • www.PacktPub.com
  • Customer Feedback
  • Table of Contents
  • Preface
  • Chapter 1: 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...
  • Chapter 2: 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...
  • Chapter 3: 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...
  • Chapter 4: 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...
  • Chapter 5: 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...
  • Chapter 6: 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...
  • Chapter 7: Reactive Programming
  • Applying the observer design pattern using Reactive Streams
  • Getting started
  • How to do it...
  • How it works...
  • Creating Mono&amp
  • lt
  • T&amp
  • gt
  • and Flux&amp
  • lt
  • T&amp
  • gt
  • publishers
  • Getting started
  • How to do it...
  • How it works...
  • Implementing the Subscriber&amp
  • lt
  • T&amp
  • gt
  • interface
  • Getting ready
  • How to do it...
  • How it works...
  • Applying backpressure to Mono&amp
  • lt
  • T&amp
  • gt
  • and Flux&amp
  • lt
  • T&amp
  • gt
  • 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...
  • Chapter 8: 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&amp
  • lt
  • T&amp
  • gt
  • and CallableFuture&amp
  • lt
  • T&amp
  • gt
  • Getting started
  • How to do it...
  • How it works...
  • Using Mono&amp
  • lt
  • T&amp
  • gt
  • and Flux&amp
  • lt
  • T&amp
  • gt
  • publishers for services
  • Getting started
  • How to do it...
  • How it works...
  • Creating Mono&amp
  • lt
  • T&amp
  • gt
  • and Flux&amp
  • lt
  • T&amp
  • gt
  • 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&amp
  • lt
  • T&amp
  • gt
  • stream
  • Getting started
  • How to do it...
  • How it works...
  • Using Thymeleaf to render a Publisher&amp
  • lt
  • T&amp
  • gt
  • stream
  • Getting started
  • How to do it...
  • How it works...
  • Applying security on TaskExecutors
  • Getting started
  • How to do it...
  • How it works...
  • Chapter 9: Spring Boot 2.0
  • Building a non-reactive Spring MVC application
  • Getting started
  • How to do it...
  • How it works...
  • Configuring Logging.
  • Getting started.