Spring Essentials

Build mission-critical enterprise applications using Spring Framework and Aspect Oriented Programming
Preview in Mapt

Spring Essentials

Shameer Kunjumohamed, Hamidreza Sattari

Build mission-critical enterprise applications using Spring Framework and Aspect Oriented Programming

Quick links: > What will you learn?> Table of content

Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Spring Essentials Book Cover
Spring Essentials
$ 35.99
$ 25.20
Spring Microservices Book Cover
Spring Microservices
$ 39.99
$ 28.00
Buy 2 for $35.00
Save $40.98
Add to Cart

Book Details

ISBN 139781783982349
Paperback260 pages

Book Description

Spring is an open source Java application development framework to build and deploy systems and applications that run on the JVM. It is the industry standard and the most popular framework among Java developers with over two-thirds of developers using it.

Spring Essentials makes learning Spring so much quicker and easier with the help of illustrations and practical examples. Starting from the core concepts of features such as inversion of Control Container and BeanFactory, we move on to a detailed look at aspect-oriented programming. We cover the breadth and depth of Spring MVC, the WebSocket technology, Spring Data, and Spring Security with various authentication and authorization mechanisms.

Packed with real-world examples, you’ll get an insight into utilizing the power of Spring Expression Language in your applications for higher maintainability. You’ll also develop full-duplex real-time communication channels using WebSocket and integrate Spring with web technologies such as JSF, Struts 2, and Tapestry. At the tail end, you will build a modern SPA using EmberJS at the front end and a Spring MVC-based API at the back end.By the end of the book, you will be able to develop your own dull-fledged applications with Spring.

Table of Contents

Chapter 1: Getting Started with Spring Core
The Spring landscape
Design concepts behind Spring Framework
Setting up the development environment
Your first Spring application
Dependency Injection
Beans in detail
Hooking to bean life cycles
Container-level default-init-method and default-destroy-method
Working with bean definition profiles
Injecting properties into the Spring environment
Externalizing properties with PropertyPlaceholderConfigurer
Handling resources
Spring Expression Language
Aspect Oriented Programming
Testing with Spring
Summary
Chapter 2: Building the Web Layer with Spring Web MVC
Features of Spring MVC
The Model-View-Controller pattern
Your first Spring MVC application
Setting up a Spring MVC application
The architecture and components of Spring MVC
DispatcherServlet explained
Controllers in detail
Asynchronous request processing in Spring MVC
Working with views
Spring and Spring form tag libraries
Composing a form in JSP
Validating forms
Handling file uploads
Resolving Thymeleaf views
More view technologies
Summary
Chapter 3: Accessing Data with Spring
Configuring DataSource
Using embedded databases
Handling exceptions in the Spring Data layer
DAO support and @Repository annotation
Spring JDBC abstraction
Spring Data
Spring Transaction support
Relevance of Spring Transaction
Summary
Chapter 4: Understanding WebSocket
Creating a simple WebSocket application
STOMP over WebSocket and the fallback option in Spring 4
Broadcasting a message to a single user in a WebSocket application
Summary
Chapter 5: Securing Your Applications
Authentication
Authorization
Summary
Chapter 6: Building a Single-Page Spring Application
The motivations behind SPAs
SPAs explained
Introducing Ember.js
The anatomy of an Ember application
Working with Ember CLI
Understanding the Ember object model
Working with collections
Building UI templates using Handlebars
Handling routes
Handling UI behavior using components
Persisting data with Ember Data
Building a Taskify application
Building the API server app
Building the Taskify Ember app
Summary
Chapter 7: Integrating with Other Web Frameworks
Spring's JSF integration
Spring's Struts integration
Summary

What You Will Learn

  • Set up and build standalone and web-based projects using Spring Framework with Maven or Gradle
  • Get familiar with JSP Form processing using Spring and Form Tag Library
  • Develop RESTful API applications for XML and JSON data transfers with non-blocking asynchronous capabilities
  • Explore Spring’s comprehensive transaction support for declarative Transaction Management and its integration with Spring’s data access abstractions
  • Investigate Spring Data access mechanisms with Spring Data Repositories, a simple and consistent data-access abstraction
  • Construct real-time applications using WebSocket with a SockJS fallback option
  • Understand how to secure your Spring Web and standalone applications using Spring Security declaratively and consistently
  • Get to grips with the end-to-end development of an API-based modern SPA using EmberJS at the front end and SpringMVC at the back end

Authors

Table of Contents

Chapter 1: Getting Started with Spring Core
The Spring landscape
Design concepts behind Spring Framework
Setting up the development environment
Your first Spring application
Dependency Injection
Beans in detail
Hooking to bean life cycles
Container-level default-init-method and default-destroy-method
Working with bean definition profiles
Injecting properties into the Spring environment
Externalizing properties with PropertyPlaceholderConfigurer
Handling resources
Spring Expression Language
Aspect Oriented Programming
Testing with Spring
Summary
Chapter 2: Building the Web Layer with Spring Web MVC
Features of Spring MVC
The Model-View-Controller pattern
Your first Spring MVC application
Setting up a Spring MVC application
The architecture and components of Spring MVC
DispatcherServlet explained
Controllers in detail
Asynchronous request processing in Spring MVC
Working with views
Spring and Spring form tag libraries
Composing a form in JSP
Validating forms
Handling file uploads
Resolving Thymeleaf views
More view technologies
Summary
Chapter 3: Accessing Data with Spring
Configuring DataSource
Using embedded databases
Handling exceptions in the Spring Data layer
DAO support and @Repository annotation
Spring JDBC abstraction
Spring Data
Spring Transaction support
Relevance of Spring Transaction
Summary
Chapter 4: Understanding WebSocket
Creating a simple WebSocket application
STOMP over WebSocket and the fallback option in Spring 4
Broadcasting a message to a single user in a WebSocket application
Summary
Chapter 5: Securing Your Applications
Authentication
Authorization
Summary
Chapter 6: Building a Single-Page Spring Application
The motivations behind SPAs
SPAs explained
Introducing Ember.js
The anatomy of an Ember application
Working with Ember CLI
Understanding the Ember object model
Working with collections
Building UI templates using Handlebars
Handling routes
Handling UI behavior using components
Persisting data with Ember Data
Building a Taskify application
Building the API server app
Building the Taskify Ember app
Summary
Chapter 7: Integrating with Other Web Frameworks
Spring's JSF integration
Spring's Struts integration
Summary

Book Details

ISBN 139781783982349
Paperback260 pages
Read More

Read More Reviews

Recommended for You

Spring Microservices Book Cover
Spring Microservices
$ 39.99
$ 28.00
Spring MVC: Beginner's Guide - Second Edition Book Cover
Spring MVC: Beginner's Guide - Second Edition
$ 35.99
$ 25.20
Building a RESTful Web Service with Spring Book Cover
Building a RESTful Web Service with Spring
$ 23.99
$ 16.80
Spring MVC: Designing Real-World Web Applications Book Cover
Spring MVC: Designing Real-World Web Applications
$ 69.99
$ 49.00
Spring MVC Blueprints Book Cover
Spring MVC Blueprints
$ 39.99
$ 28.00
Mastering Spring Application Development Book Cover
Mastering Spring Application Development
$ 35.99
$ 25.20