Learning Spring Boot - Second Edition

Building lightning fast apps with this practical tutorial to the Spring Boot MVC Framework

Access cutting-edge content as it's created

Want access to this book right now? Read as we develop it as part of our Early Access program. Click here to find out more about Early Access.

Learning Spring Boot - Second Edition

Greg L. Turnquist

Building lightning fast apps with this practical tutorial to the Spring Boot MVC Framework

Access cutting-edge content as it's created

Want access to this book right now? Read as we develop it as part of our Early Access program. Click here to find out more about Early Access.

$0.00
$18.00
$44.99
$29.99p/m after trial
RRP $35.99
RRP $44.99
Subscription
Early Access eBook
Pre-Order Print
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Code Files
Preview in Mapt

Book Details

ISBN 139781786463784
Paperback460 pages

Book Description

Spring Boot provides a variety of features that address today’s business needs with a powerful database and state of the art MVC framework. This practical guide will help you get up and running with all the latest features of Spring Boot.

The book starts off by helping you build a simple app, then show you how to bundle and deploy it to the cloud. From here, we take you through reactive programming showing you how to interact with controllers and templates and handle data access. Once you’re done, you can start testing using unit tests, slice, and embedded spring boot tests.

We also go into detail about developer tools, messaging, web sockets, security, and deployment. So if you want a good understanding of the core app functionality using Spring Boot, this is the book for you.

Table of Contents

Chapter 1: Quick Start with Java
Getting Started
Spring Boot starters
Running a Spring Boot application
Delving into Spring Boot's property support
Bundling up the application as a runnable JAR file
Deploying to Cloud Foundry
Adding production-ready support
Summary
Chapter 2: Developer Tools for Spring Boot Apps
Using Spring Boot's DevTools for hot code reloading
Using Spring Boot's autoconfiguration report
Making local changes and seeing them on the target system
Writing a custom health check
Adding build data to /info
Creating custom metrics
Creating custom CRaSH commands
Summary
Chapter 3: AMQP Messaging with Spring Boot
Getting started with RabbitMQ
Adding messaging as a new component to an existing application
Create message producer/message consumer
Add customized metrics to track message flow
Peeking at Spring Cloud Stream (with RabbitMQ)
Summary
Chapter 4: Microservices with Spring Boot
Quick primer on microservices
Dynamically registering and finding services with Eureka
Introduction to @SpringCloudApplication
Calling one microservice from another with client side load balancing
Implementing microservice circuit breakers
Monitoring circuits
Offloading microservice settings to a configuration server
Summary
Chapter 5: WebSockets with Spring Boot
Publishing saved comments to a chat service
Creating a chat service to handle WebSocket traffic
What is STOMP?
Moving to a fully asynchronous web client
Handling AJAX calls on the server
Introducing user chatting
Checking out the final product
JSR 356 vs. Spring Messaging
Summary
Chapter 6: Securing your App with Spring Boot
Securing a Spring Boot application
Using Spring session
Securing the chat microservice
Sharing session details with other microservices
Securing the images microservice
Wiring in image ownership
Tailoring the UI with authorization checks
Securing WebSockets
Tracing calls
Securing the Config Server
Securing the Eureka Server
Summary
Chapter 7: Taking Your App to Production with Spring Boot
Profile-based sets of beans
Creating configuration property beans
Override property settings in production
Pushing app to Cloud Foundry and adjusting the settings
Summary

What You Will Learn

  • Create powerful, production-grade applications and services with minimal fuss
  • Support multiple environments with one artifact, and add production-grade support with features 
  • Find out how to tweak your apps through different properties
  • Use custom metrics to track the number of messages published and consumed
  • Enhance the security model of your apps
  • Make use of reactive programming in Spring Boot
  • Build anything from light weight unit tests to fully running, embedded servlet integration tests

Authors

Table of Contents

Chapter 1: Quick Start with Java
Getting Started
Spring Boot starters
Running a Spring Boot application
Delving into Spring Boot's property support
Bundling up the application as a runnable JAR file
Deploying to Cloud Foundry
Adding production-ready support
Summary
Chapter 2: Developer Tools for Spring Boot Apps
Using Spring Boot's DevTools for hot code reloading
Using Spring Boot's autoconfiguration report
Making local changes and seeing them on the target system
Writing a custom health check
Adding build data to /info
Creating custom metrics
Creating custom CRaSH commands
Summary
Chapter 3: AMQP Messaging with Spring Boot
Getting started with RabbitMQ
Adding messaging as a new component to an existing application
Create message producer/message consumer
Add customized metrics to track message flow
Peeking at Spring Cloud Stream (with RabbitMQ)
Summary
Chapter 4: Microservices with Spring Boot
Quick primer on microservices
Dynamically registering and finding services with Eureka
Introduction to @SpringCloudApplication
Calling one microservice from another with client side load balancing
Implementing microservice circuit breakers
Monitoring circuits
Offloading microservice settings to a configuration server
Summary
Chapter 5: WebSockets with Spring Boot
Publishing saved comments to a chat service
Creating a chat service to handle WebSocket traffic
What is STOMP?
Moving to a fully asynchronous web client
Handling AJAX calls on the server
Introducing user chatting
Checking out the final product
JSR 356 vs. Spring Messaging
Summary
Chapter 6: Securing your App with Spring Boot
Securing a Spring Boot application
Using Spring session
Securing the chat microservice
Sharing session details with other microservices
Securing the images microservice
Wiring in image ownership
Tailoring the UI with authorization checks
Securing WebSockets
Tracing calls
Securing the Config Server
Securing the Eureka Server
Summary
Chapter 7: Taking Your App to Production with Spring Boot
Profile-based sets of beans
Creating configuration property beans
Override property settings in production
Pushing app to Cloud Foundry and adjusting the settings
Summary

Book Details

ISBN 139781786463784
Paperback460 pages
Read More

Read More Reviews

Recommended for You

Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
$ 43.99
$ 22.00
RESTful Java Web Services - Second Edition Book Cover
RESTful Java Web Services - Second Edition
$ 35.99
$ 18.00
Advanced Functional Data Structures and Algorithms [Video] Book Cover
Advanced Functional Data Structures and Algorithms [Video]
$ 124.99
$ 37.50