更新时间:2021-08-13 16:01:06
封面
Title Page
Copyright and Credits
Spring Boot 2.0 Projects
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Introduction
Technical requirements
Generating Spring Boot Projects
Opening the generated project with IntelliJ
Opening the generated project with STS
Getting started with Spring Boot
Learning about Spring Boot
Anatomy of a Spring Boot application
Supporting the Spring Framework ecosystem in Spring Boot
Changes since Spring Boot 1.x
Registering a Spring Bean using ApplicationContextInitializer
Configuration property binding
New property binding API
Property origin
Tightened rules for governing relaxed property binding
Environment variables with indices
Direct binding of property type java.time.Duration in the ISO-8601 form
Custom endpoints for Spring Boot Actuator using annotations
Exposing a custom Spring Boot Actuator endpoint
Extending a custom endpoint with a specialized implementation for the web
Connecting to a custom endpoint using monitoring and management tools
Custom metrics using Micrometer
Custom health indicator
Using the HTTP/2 protocol
Securing applications with Spring Security
The next milestone
Migration
Using the correct JDK and JVM
Running on Java 9
Tackling JAXBException
Using the correct AspectJ version
Being aware of limitations on Apache Cassandra drivers
Being aware of issues with the Maven Surefire Plugin
Using the upgraded Spring Framework 5.0
Modified CORS support behavior
Removed packages classes and methods
Dropped support for frameworks
Using the updated configuration properties
Using the changed servlet-specific server properties
Using the modified template engine extension handling
Using the changed actuator configuration properties
Using the changed actuator base path
Using the renamed actuator endpoints
Using the changed Embedded Container Configuration
Using the changed default behavior for path mapping
Using the changed default dispatcher types for the servlet filter
Using the modified transitive dependency to spring-boot-web-starter
Using the changed default proxying strategy
Using the modified configuration location strategy
Using the changed Jackson/JSON support
Using the changed Spring Boot Actuator security
Using the changed HikariCP default connection pool for JPA
Using the changed default database initialization strategy
Using the changed database schema creation strategy
Using the changed testing support
Using the revised Spring Security
Using the changed default security auto-configuration strategy
Spring Security OAuth2 is migrated to Spring Security core
Using the AuthenticationManager bean
Understanding removed features
Summary
Questions
Further reading
Building a Basic Web Application
Getting started
Web application architecture
Workflow of Spring Web MVC
Requirements for our web application
The use case diagram
Using Spring Data JPA for persistence
Understanding the Java Persistence API (JPA)
Understanding Spring Data JPA
Class diagram for the domain model
Implementation of the domain model using JPA annotations
Setting up dependencies and configuration
Implementing the domain model
Implementation of Spring Data JPA repositories
Testing Spring Data JPA repositories
Using Spring Boot Devtools for database visualization