售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Spring: Microservices with Spring Boot
Credits
Meet Your Expert
Preface
What's in It for Me?
What Will I Get from This Book?
Prerequisites
Chapter 1. Building Microservices with Spring Boot
What is Spring Boot?
Building a Quick Prototype for a Microservice
Primary Goals
Nonfunctional Features
Spring Boot Hello World
Configure spring-boot-starter-parent
Note
spring-boot-starter-parent
Configure pom.xml with the Required Starter Projects
Understanding Starter Projects
Configuring spring-boot-maven-plugin
Creating Your First Spring Boot Launch Class
The SpringApplication Class
The @SpringBootApplication Annotation
Running Our Hello World Application
Auto-configuration
Starter Projects
What is REST?
First REST Service
Simple Method Returning String
Unit Testing
Integration Testing
Simple REST Method Returning an Object
Executing a Request
Unit Testing
Integration Testing
Get Method with Path Variables
Executing a Request
Unit Testing
Integration Testing
Creating a Todo Resource
Request Methods, Operations, and Uris
Beans and Services
Retrieving a Todo List
Executing the Service
Unit Testing
Integration Testing
Retrieving Details for a Specific Todo
Executing the Service
Unit Testing
Integration Testing
Adding A Todo
Postman
Executing the POST Service
Unit Testing
Integration Testing
Spring Initializr
Creating Your First Spring Initializr Project
pom.xml
FirstSpringInitializrApplication.java Class
FirstSpringInitializrApplicationTests Class
A Quick Peek into Auto-Configuration
Summary
Assessments
Chapter 2. Extending Microservices
Exception Handling
Spring Boot Default Exception Handling
Non-Existent Resource
Resource Throwing an Exception
Throwing a Custom Exception
Customizing the Exception Message
Response Status
HATEOAS
Sending HATEOAS Links in Response
Spring Boot Starter HATEOAS
Note
Validation
Enabling Validation on the Controller Method
Defining validations on the Bean
Unit Testing Validations
Documenting REST Services
Generating a Swagger Specification
Swagger UI
Customizing Swagger Documentation Using Annotations
Securing REST Services with Spring Security
Adding Spring Security Starter
Basic Authentication
Integration Testing
Unit Testing
OAuth 2 Authentication
High-level flow
Implementing OAuth 2 authentication for Our Service
Setting up Authorization and Resource Servers:
Note
Executing OAuth Requests
Obtaining an Access Token
Executing the Request Using the Access Token
Integration Test
Internationalization
Caching
Spring-boot-starter-cache
Enabling Caching
Caching Data
JSR-107 Caching Annotations
Auto-Detection Order
Summary
Assessments
Chapter 3. Advanced Spring Boot Features
Externalised Configuration
Customizing Frameworks Through application.properties
Note
Logging
Embedded Server Configuration
Spring MVC
Spring Starter Security
Data Sources, JDBC, and JPA
Other Configuration Options
Custom Properties in Application.Properties
Configuration properties - Type-Safe Configuration Management
Profiles
Profiles-Based Bean Configuration
Other Options for Application Configuration Values
YAML Configuration
Embedded Servers
Switching to Jetty and Undertow
Building a WAR file
Developer Tools
Live Reload
Spring Boot Actuator
HAL Browser
Configuration Properties
Note
Environment Details
Health
Mappings
Beans
Metrics
Auto-Configuration
Debugging
Deploying an Application to Cloud
Cloud Foundry
Note
Summary
Assessments
Chapter 4. Assessment Answers
Lesson 1: Building Microservices with Spring Boot
Lesson 2: Extending Microservices
Lesson 3: Advanced Spring Boot Features
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜