The Wayback Machine - https://web.archive.org/web/20180428004011/https://www.packtpub.com/application-development/spring-boot-cookbook-second-edition

Spring Boot 2.0 Cookbook - Second Edition

Take your application development skills to the next level by implementing Spring Boot features effectively
Preview in Mapt

Spring Boot 2.0 Cookbook - Second Edition

Alex Antonov

2 customer reviews
Take your application development skills to the next level by implementing Spring Boot features effectively
Mapt Subscription
FREE
€29.73/m after trial
eBook
€9.73
RRP €35.68
Save 72%
Print + eBook
€37.99
RRP €37.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
€9.73
€37.99
€29.74 p/m after trial
RRP €35.68
RRP €37.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Spring Boot 2.0 Cookbook - Second Edition Book Cover
Spring Boot 2.0 Cookbook - Second Edition
€ 35.68
€ 9.73
Learning Java Lambdas Book Cover
Learning Java Lambdas
€ 27.35
€ 9.73
Buy 2 for €19.46
Save €36.62
Add to Cart

Book Details

ISBN 139781787129825
Paperback286 pages

Book Description

The Spring framework provides great flexibility for Java development, which also results in tedious configuration work. Spring Boot addresses the configuration difficulties of Spring and makes it easy to create standalone, production-grade Spring-based applications.

This practical guide makes the existing development process more efficient. Spring Boot Cookbook 2.0 Second Edition smartly combines all the skills and expertise to efficiently develop, test, deploy, and monitor applications using Spring Boot on premise and in the cloud. We start with an overview of the important Spring Boot features you will learn to create a web application for a RESTful service. Learn to fine-tune the behavior of a web application by learning about custom routes and asset paths and how to modify routing patterns. Address the requirements of a complex enterprise application and cover the creation of custom Spring Boot starters.

This book also includes examples of the new and improved facilities available to create various kinds of tests introduced in Spring Boot 1.4 and 2.0, and gain insights into Spring Boot DevTools. Explore the basics of Spring Boot Cloud modules and various Cloud starters to make applications in “Cloud Native” and take advantage of Service Discovery and Circuit Breakers.

Table of Contents

Chapter 1: Getting Started with Spring Boot
Introduction
Using a Spring Boot template and starter
Creating a simple application
Launching an application using Gradle
Using the command-line runners
Setting up a database connection
Setting up a data repository service
Scheduling executors
Chapter 2: Configuring Web Applications
Creating a basic RESTful application
Creating Spring Data REST service
Configuring custom servlet filters
Configuring custom interceptors
Configuring custom HttpMessageConverters
Configuring custom PropertyEditors
Configuring custom type formatters
Chapter 3: Web Framework Behavior Tuning
Introduction
Configuring route matching patterns
Configuring custom static path mappings
Tuning Tomcat via ServletWebServerFactory
Choosing embedded servlet containers
Adding custom connectors
Chapter 4: Writing Custom Spring Boot Starters
Introduction
Understanding Spring Boot autoconfiguration
Creating a custom Spring Boot autoconfiguration starter
Configuring custom conditional bean instantiations
Using custom @Enable annotations to toggle configuration
Chapter 5: Application Testing
Introduction
Creating tests for MVC controllers
Configuring a database schema and populating it
Creating tests using an in-memory database
Creating tests using mock objects
Creating a JPA component test
Creating a WebMvc component test
Writing tests using Cucumber
Writing tests using Spock
Chapter 6: Application Packaging and Deployment
Introduction
Creating a Spring Boot executable JAR
Creating Docker images
Building self-executing binaries
Spring Boot environment configuration, hierarchy, and precedence
Adding a custom PropertySource to the environment using EnvironmentPostProcessor
Externalizing an environmental configuration using property files
Externalizing an environmental configuration using environment variables
Externalizing an environmental configuration using Java system properties
Externalizing an environmental config using JSON
Setting up Consul
Externalizing an environmental config using Consul and envconsul
Chapter 7: Health Monitoring and Data Visualization
Introduction
Writing custom health indicators
Configuring management context
Emitting metrics
Monitoring Spring Boot via JMX
Managing Spring Boot via SSHd Shell and writing custom remote Shell commands
Integrating Micrometer metrics with Graphite
Integrating Micrometer metrics with Dashing
Chapter 8: Spring Boot DevTools
Introduction
Adding Spring Boot DevTools to a project
Configuring LiveReload
Configuring dynamic application restart triggers
Using Remote Update
Chapter 9: Spring Cloud
Introduction
Getting started with Spring Cloud
Service discovery using Spring Cloud Consul
Using Spring Cloud Netflix – Feign
Service discovery using Spring Cloud Netflix – Eureka
Using Spring Cloud Netflix – Hystrix

What You Will Learn

  • Get to know Spring Boot Starters and create custom auto-configurations
  • Work with custom annotations that enable bean activation
  • Use DevTools to easily develop and debug applications
  • Learn the effective testing techniques by integrating Cucumber and Spock
  • Observe an eternal application configuration using Consul
  • Move your existing Spring Boot applications to the cloud
  • Use Hashicorp Consul and Netflix Eureka for dynamic Service Discovery
  • Understand the various mechanisms that Spring Boot provides to examine an application’s health

Authors

Table of Contents

Chapter 1: Getting Started with Spring Boot
Introduction
Using a Spring Boot template and starter
Creating a simple application
Launching an application using Gradle
Using the command-line runners
Setting up a database connection
Setting up a data repository service
Scheduling executors
Chapter 2: Configuring Web Applications
Creating a basic RESTful application
Creating Spring Data REST service
Configuring custom servlet filters
Configuring custom interceptors
Configuring custom HttpMessageConverters
Configuring custom PropertyEditors
Configuring custom type formatters
Chapter 3: Web Framework Behavior Tuning
Introduction
Configuring route matching patterns
Configuring custom static path mappings
Tuning Tomcat via ServletWebServerFactory
Choosing embedded servlet containers
Adding custom connectors
Chapter 4: Writing Custom Spring Boot Starters
Introduction
Understanding Spring Boot autoconfiguration
Creating a custom Spring Boot autoconfiguration starter
Configuring custom conditional bean instantiations
Using custom @Enable annotations to toggle configuration
Chapter 5: Application Testing
Introduction
Creating tests for MVC controllers
Configuring a database schema and populating it
Creating tests using an in-memory database
Creating tests using mock objects
Creating a JPA component test
Creating a WebMvc component test
Writing tests using Cucumber
Writing tests using Spock
Chapter 6: Application Packaging and Deployment
Introduction
Creating a Spring Boot executable JAR
Creating Docker images
Building self-executing binaries
Spring Boot environment configuration, hierarchy, and precedence
Adding a custom PropertySource to the environment using EnvironmentPostProcessor
Externalizing an environmental configuration using property files
Externalizing an environmental configuration using environment variables
Externalizing an environmental configuration using Java system properties
Externalizing an environmental config using JSON
Setting up Consul
Externalizing an environmental config using Consul and envconsul
Chapter 7: Health Monitoring and Data Visualization
Introduction
Writing custom health indicators
Configuring management context
Emitting metrics
Monitoring Spring Boot via JMX
Managing Spring Boot via SSHd Shell and writing custom remote Shell commands
Integrating Micrometer metrics with Graphite
Integrating Micrometer metrics with Dashing
Chapter 8: Spring Boot DevTools
Introduction
Adding Spring Boot DevTools to a project
Configuring LiveReload
Configuring dynamic application restart triggers
Using Remote Update
Chapter 9: Spring Cloud
Introduction
Getting started with Spring Cloud
Service discovery using Spring Cloud Consul
Using Spring Cloud Netflix – Feign
Service discovery using Spring Cloud Netflix – Eureka
Using Spring Cloud Netflix – Hystrix

Book Details

ISBN 139781787129825
Paperback286 pages
Read More
From 2 reviews

Read More Reviews

Recommended for You

Learning Java Lambdas Book Cover
Learning Java Lambdas
€ 27.35
€ 9.73
Spring 5 Design Patterns Book Cover
Spring 5 Design Patterns
€ 41.63
€ 9.73
Mastering Concurrency Programming with Java 8 Book Cover
Mastering Concurrency Programming with Java 8
€ 47.58
€ 9.73
Learning Java Lambdas Book Cover
Learning Java Lambdas
€ 27.35
€ 9.73
RESTful Java Web Services - Third Edition Book Cover
RESTful Java Web Services - Third Edition
€ 41.63
€ 9.73
Reactive Programming in Spring 5.0 Book Cover
Reactive Programming in Spring 5.0
€ 45.20
€ 9.73