Book description
Over 35 recipes to help you build, test, and run Spring applications using Spring Boot
About This Book
- Learn to create different types of Spring Boot applications, configure behavior, and add custom components
- Become more efficient in testing, deploying, and monitoring Spring Boot based applications
- This is a practical guide that will help Spring developers to develop and deploy applications using Spring Boot
Who This Book Is For
If you are a Spring Developer who has good knowledge level and understanding of Spring Boot and application development and now want to learn efficient Spring Boot development techniques in order to make the existing development process more efficient, then this book is for you.
What You Will Learn
- Create Spring Boot applications from scratch
- Configure and tune web applications and containers
- Create custom Spring Boot auto-configurations and starters
- Use Spring Boot Test framework with JUnit, Cucumber, and Spock
- Configure and tune web applications and containers
- Deploy Spring Boot as self-starting executables and Docker containers
- Monitor data using DropWizard, Graphite, and Dashing
In Detail
Spring Boot is Spring's convention-over-configuration solution. This feature makes it easy to create Spring applications and services with absolute minimum fuss. Spring Boot has the great ability to be customized and enhanced, and is specifically designed to simplify development of a new Spring application.
This book will provide many detailed insights about the inner workings of Spring Boot, as well as tips and recipes to integrate the third-party frameworks and components needed to build complex enterprise-scale applications.
The book starts with an overview of the important and useful Spring Boot starters that are included in the framework, and teaches you to create and add custom Servlet Filters, Interceptors, Converters, Formatters, and PropertyEditors to a Spring Boot web application. Next 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.
Moving on, the book will teach you how to create custom Spring Boot Starters, and explore different techniques to test Spring Boot applications. Next, the book will show you examples of configuring your build to produce Docker images and self-executing binary files for Linux/OSX environments.
Finally, the book will teach you how to create custom health indicators, and access monitoring data via HTTP and JMX.
Style and approach
This book is a cohesive collection of recipes that provide developers with a set of connected guidelines on how to build, configure, and customize their application, starting from the design and development stages, all the way through testing, deployment, and production monitoring.
Table of contents
-
Spring Boot Cookbook
- Table of Contents
- Spring Boot Cookbook
- Credits
- About the Author
- Acknowledgment
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Getting Started with Spring Boot
- 2. Configuring Web Applications
- 3. Web Framework Behavior Tuning
- 4. Writing Custom Spring Boot Starters
- 5. Application Testing
-
6. Application Packaging and Deployment
- Introduction
- Creating a Spring Boot executable JAR
- Creating Docker images
- Building self-executing binaries
- Spring Boot environment config hierarchy and precedence
- Externalizing environmental config using property files
- Externalizing environmental config using environment variables
- Externalizing environmental config using Java system properties
- Setting up Consul
- Externalizing environmental config using Consul and envconsul
- 7. Health Monitoring and Data Visualization
- Index
Product information
- Title: Spring Boot Cookbook
- Author(s):
- Release date: September 2015
- Publisher(s): Packt Publishing
- ISBN: 9781785284151
You might also like
book
Spring Boot 2.0 Cookbook - Second Edition
Take your application development skills to the next level by implementing Spring Boot features effectively About …
book
Spring Cookbook
Over 100 hands-on recipes to build Spring web applications easily and efficiently Use the latest configuration …
book
Spring Boot 2.0 Projects
Develop diverse real-life projects including most aspects of Spring Boot Key Features Run production-grade based applications …
book
Spring Boot 2 Recipes: A Problem-Solution Approach
Solve all your Spring Boot 2 problems using complete and real-world code examples. When you start …