万本电子书0元读

万本电子书0元读

顶部广告

Spring Boot Cookbook电子书

售       价:¥

53人正在读 | 0人评论 9.8

作       者:Alex Antonov

出  版  社:Packt Publishing

出版时间:2015-09-28

字       数:93.6万

所属分类: 进口书 > 外文原版书 > 电脑/网络

温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印

为你推荐

  • 读书简介
  • 目录
  • 累计评论(0条)
  • 读书简介
  • 目录
  • 累计评论(0条)
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.
目录展开

Spring Boot Cookbook

Table of Contents

Spring Boot Cookbook

Credits

About the Author

Acknowledgment

About the Reviewers

www.PacktPub.com

Support files, eBooks, discount offers, and more

Why Subscribe?

Free Access for Packt account holders

Preface

What this book covers

What you need for this book

Who this book is for

Conventions

Reader feedback

Customer support

Downloading the example code

Errata

Piracy

Questions

1. Getting Started with Spring Boot

Introduction

Using a Spring Boot template and starters

How to do it…

How it works…

Creating a simple application

How to do it…

How it works…

Launching an application using Gradle

How to do it…

How it works…

Using the command-line runners

How to do it…

How it works…

Setting up a database connection

Getting ready

How to do it…

How it works…

Setting up a data repository service

How to do it…

How it works…

Scheduling executors

Getting ready

How to do it…

How it works…

2. Configuring Web Applications

Creating a basic RESTful application

How to do it…

How it works…

Creating a Spring Data REST service

How to do it…

How it works…

Configuring custom servlet filters

How to do it…

How it works…

Configuring custom interceptors

How to do it…

How it works…

Configuring custom HttpMessageConverters

How to do it…

How it works…

Configuring custom PropertyEditors

How to do it…

How it works…

Configuring custom type Formatters

How to do it…

How it works…

3. Web Framework Behavior Tuning

Introduction

Configuring route matching patterns

How to do it…

How it works…

Configuring custom static path mappings

How to do it…

How it works…

Tuning Tomcat via EmbeddedServletContainerCustomizer

How to do it…

How it works…

Choosing embedded servlet containers

How to do it…

How it works…

Adding custom connectors

Getting ready

How to do it…

How it works…

4. Writing Custom Spring Boot Starters

Introduction

Understanding Spring Boot autoconfiguration

How to do it…

How it works…

Creating a custom Spring Boot autoconfiguration starter

How to do it…

How it works…

Configuring custom conditional bean instantiations

How to do it…

How it works…

Using custom @Enable* annotations to toggle configurations

How to do it…

How it works…

5. Application Testing

Introduction

Creating tests for Spring MVC Controllers

How to do it…

How it works…

Automatically configuring the database schema and populating it with data

How to do it…

How it works…

Initializing the database with Spring JPA and Hibernate

Initializing the database with Spring JDBC

Creating tests using in-memory database with data fixtures

How to do it…

How it works…

Creating tests using Mockito to mock DB

How to do it…

How it works…

Writing tests using Cucumber

How to do it…

How it works…

Writing tests using Spock

How to do it…

How it works…

6. Application Packaging and Deployment

Introduction

Creating a Spring Boot executable JAR

How to do it…

How it works…

Creating Docker images

How to do it…

How it works…

Building self-executing binaries

Getting ready

How to do it…

How it works…

Spring Boot environment config hierarchy and precedence

How to do it…

How it works…

Externalizing environmental config using property files

How to do it…

How it works…

Externalizing environmental config using environment variables

How to do it…

How it works…

Externalizing environmental config using Java system properties

How to do it…

How it works…

Setting up Consul

How to do it…

How it works…

Externalizing environmental config using Consul and envconsul

Getting ready

How to do it…

How it works…

7. Health Monitoring and Data Visualization

Introduction

Writing custom health indicators

How to do it…

How it works…

Emitting metrics

Getting ready

How to do it…

How it works…

Monitoring Spring Boot via JMX

Getting ready

How to do it…

How it works…

Management of Spring Boot via CRaSH and writing custom remote shell commands

How to do it…

How it works…

Integrating Codahale/Dropwizard metrics with Graphite

Getting ready

How to do it…

How it works…

Integrating Codahale/Dropwizard metrics with Dashing

Getting ready

How to do it…

How it works…

Index

累计评论(0条) 0个书友正在讨论这本书 发表评论

发表评论

发表评论,分享你的想法吧!

买过这本书的人还买过

读了这本书的人还在读

回顶部