Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Spring Boot 2.0 Cookbook

You're reading from   Spring Boot 2.0 Cookbook Configure, test, extend, deploy, and monitor your Spring Boot application both outside and inside the cloud

Arrow left icon
Product type Paperback
Published in Feb 2018
Publisher
ISBN-13 9781787129825
Length 286 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Alex Antonov Alex Antonov
Author Profile Icon Alex Antonov
Alex Antonov
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Getting Started with Spring Boot 2. Configuring Web Applications FREE CHAPTER 3. Web Framework Behavior Tuning 4. Writing Custom Spring Boot Starters 5. Application Testing 6. Application Packaging and Deployment 7. Health Monitoring and Data Visualization 8. Spring Boot DevTools 9. Spring Cloud 10. Other Books You May Enjoy

What this book covers

Chapter 1, Getting Started with Spring Boot, provides an overview of the important and useful Spring Boot starters that are included in the framework. You will learn how to use spring.io resources, how to get started with a simple project, and how to configure the build file to contain their desired starters. The chapter will finish with creating a simple command-line application configured to execute some scheduled tasks.

Chapter 2, Configuring Web Applications, provides examples of how to create and add custom servlet filters, interceptors, converters, formatters, and PropertyEditors to a Spring Boot web application. It will start by creating a new web application and use it as a base to customize with the components we discuss earlier in the chapter.

Chapter 3, Web Framework Behavior Tuning, delves into fine-tuning the behavior of a web application. It will cover configuring custom routing rules and patterns, adding additional static asset paths, and adding and modifying servlet container connectors and other properties, such as enabling SSL.

Chapter 4, Writing Custom Spring Boot Starters, shows how to create custom Spring Boot starters to provide additional behaviors and functionality that might be required for complex enterprise applications. You will learn about how the autoconfiguration mechanics works under the hood and how to use them to selectively enable/disable default functionality and conditionally load your own.

Chapter 5, Application Testing, explores different techniques for testing Spring Boot applications. It will start by introducing you to testing MVC applications, then proceed with some tips on how to use in-memory databases with pre-populated data to mimic real DB interactions during tests, and conclude with examples of BDD via testing tools such as Cucumber and Spock.

Chapter 6, Application Packaging and Deployment, will cover examples of configuring your build to produce Docker images and self-executing binary files for Linux/OSX environments. We will explore the options for external application configuration using Consul and delve into the details of Spring Boot environment and configuration functionality.

Chapter 7, Health Monitoring and Data Visualization, explores the various mechanisms that Spring Boot provides to help us see data relating to application's health. We will start by learning how to write and expose custom health metrics and see the data using HTTP endpoints and JMX. It will then proceed with the overview and creation of management commands for SSHd and finish with integration of monitoring data with Graphite and Dashing using the Micrometer metrics framework.

Chapter 8, Spring Boot DevTools, provides an insight into how to use Spring Boot DevTools during application development to simplify common tasks of dynamic code recompiling/restarting and remote code updating. We will learn how to add DevTools to the project, followed by exploring how DevTools helps speed up the development process by automatically restarting a running application when code changes take place.

Chapter 9, Spring Cloud, provides examples of various features in Spring Boot Cloud modules. You will learn how to use different cloud modules for service discovery, such as Consul or Netflix Eureka. Later, we will look at how to incorporate Netflix libraries such as the Hystrix circuit breaker and the Feign interface-based REST client.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime