My Account Log in

3 options

Spring 5.0 cookbook : recipes to build, test, and run spring applications efficiently / Sherwin John Calleja Tragura.

EBSCOhost Academic eBook Collection (North America) Available online

View online

Ebook Central College Complete Available online

View online

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Tragura, Sherwin John Calleja, author.
Language:
English
Subjects (All):
Spring (Software framework).
Cookbooks.
Physical Description:
1 online resource (1 volume) : illustrations
Edition:
1st edition
Other Title:
Spring five point zero cookbook
Place of Publication:
Birmingham, England ; Mumbai, [India] : Packt Publishing, 2017.
System Details:
Mode of access: World Wide Web.
text file
Summary:
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 Spri...
Contents:
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
Installing STS Eclipse 3.8 IDE
Creating Eclipse projects using Maven
Creating Spring STS Eclipse projects using Gradle
Deploying Spring projects using Maven
Deploying Spring projects using Gradle
Installing the MySQL 5.7 database server
Installing the MongoDB 3.2 database server
Chapter 2: Learning Dependency Injection (DI)
Implementing a Spring container using XML
Implementing a Spring container using JavaConfig
Managing beans in an XML-based container
Managing beans in the JavaConfig container
Creating Singleton and Prototype beans
Defining eager and lazy spring beans
Creating an inner bean
Injecting Collections and Properties.
Getting started
Creating a Spring MVC using an XML-based approach
Creating a Spring MVC using the JavaConfig approach
Generating multiple ApplicationContexts
Using ResourceBundleMessageSource for Views
Chapter 3: Implementing MVC Design Patterns
Creating the simple @Controller
Creating a simple @Controller with method-level URL mapping
Designing a simple form @Controller
Creating a multi-action @Controller
Form validation and parameter type conversion
Creating request- and session-scoped beans
Implementing page redirection and Flash-scoped beans
Creating database connection pooling
Implementing the DAO layer using the Spring JDBC Framework
Getting Started
Creating a service layer in an MVC application
Chapter 4: Securing Spring MVC Applications
Configuring Spring Security 4.2.2
Mapping sessions to channels and ports
Customizing the authentication process
Getting started.
How to do it...
Implementing authentication filters, login success, and failure handlers
Creating user details
Generating encrypted passwords
Applying Security to MVC methods
Creating roles and permissions from the database
Managing and storing sessions
Solving Cross-Site Request Forgery (CSRF) and session fixation attacks
Solving Cross-Site Scripting (XSS) and clickjacking attacks
Creating interceptors for login data validation
Chapter 5: Cross-Cutting the MVC
Logging and auditing service methods
Managing DAO transactions
Monitoring services and request handlers
Validating parameters and arguments
Managing exceptions
Implementing the caching mechanism
Intercepting request transactions
Implementing user authentication
Accessing with restrictions
How it works.
Controlling concurrent user access
Implementing a mini-workflow using AOP
Chapter 6: Functional Programming
Implementing lambda expressions using anonymous inner classes
Implementing lambda expression using @FunctionInterface
Applying the built-in functional interfaces
Applying method and constructor references
Using the Stream API
Applying streams to collections
Applying streams to NIO 2.0
Using parallel streams
Chapter 7: Reactive Programming
Applying the observer design pattern using Reactive Streams
Creating Mono&amp
lt
T&amp
gt
and Flux&amp
publishers
Implementing the Subscriber&amp
interface
Getting ready
Applying backpressure to Mono&amp
Managing task executions using Schedulers
Creating concurrent and parallel emissions
Managing continuous data emission
How to do it.
How it works...
Implementing Stream manipulation and transformation
Testing Reactive data transactions
Implementing Reactive events using RxJava 2.x
Chapter 8: Reactive Web Applications
Configuring the TaskExecutor
SimpleAsyncTaskExecutor
ThreadPoolTaskExecutor
ConcurrentTaskExecutor
Implementing @Async services
Creating asynchronous controllers
Creating @Scheduled services
Using Future&amp
and CallableFuture&amp
Using Mono&amp
publishers for services
HTTP response
Integrating RxJava 2.0
Using FreeMarker to render Publisher&amp
stream
Using Thymeleaf to render a Publisher&amp
Applying security on TaskExecutors
Chapter 9: Spring Boot 2.0
Building a non-reactive Spring MVC application
Configuring Logging.
Getting started.
Notes:
Includes index.
Includes bibliographical references and index.
Description based on online resource; title from PDF title page (ebrary, viewed October 23, 2017).
OCLC:
1008968640

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Library Catalog Using Articles+ Library Account