Go beyond the basics with Spring Boot! This practical guide presents dozens of relevant scenarios in a convenient problem-solution-discussion format.
Spring Boot in Practice covers dozens of handy Spring Boot development techniques, from basic functions to hidden features you probably didn’t even know existed. Each recipe is built around a real-world problem, complete with a full solution and thoughtful discussion.
You’ll work your way from fundamentals to advanced functionalities as you take deep dives into auto-configuration, security implementation, and even support for reactive application development. Learn how to work with Spring Boot and Kotlin, handling connections for multiple platforms, and how Spring Boot can simplify building microservices and APIs. You’re sure to keep this practical book on hand as a reference as you build your next Spring Boot apps.
Spring Boot in Practice MEAP V09 Copyright welcome Brief contents 1: Booting Spring Boot 1.1 Introducing Spring Boot 1.1.1 Why Spring Boot? 1.1.2 What is Spring Boot 1.1.3 Spring Boot Core Features 1.1.4 Spring Boot Components 1.2 Code Examples 1.2.1 Maven vs Gradle 1.2.2 Java vs Kotlin 1.2.3 Database Support 1.2.4 Lombok 1.3 Getting Started with Spring Boot 1.3.1 Your First Spring Boot Project 1.3.2 Spring Boot Project Structure 1.3.3 Creating an Executable JAR file 1.3.4 Exploring the Jar file 1.3.5 Shutting Down a Spring Boot application 1.4 Spring Boot Additional Concepts 1.4.1 Spring Boot Startup Events 1.4.2 Listening Events in a Spring Boot Application 1.4.3 Custom Spring Boot Starters 1.4.4 Custom Auto-Configuration 1.4.5 Failure Analyzers 1.4.6 Spring Boot Actuator 1.4.7 Spring Boot Developer Tool 1.5 Chapter Summary 2: Spring Boot common tasks 2.1 Managing Configurations 2.1.1 Using SpringApplication 2.1.2 Using @PropertySource 2.1.3 Config Data File 2.1.4 OS Environment Variable 2.1.5 Command Line Arguments 2.2 Creating Custom Properties with @ConfigurationProperties 2.3 Executing Code on Spring Boot Application Startup 2.4 Customizing logging Logging in a Spring Boot Application 2.5 Validate User Data using Bean Validation 2.6 Chapter Summary 3: Database Access with Spring Data 3.1 Introducing Spring Data 3.1.1 Why Spring Data 3.1.2 Spring Data Modules 3.2 Configuring a Database in a Spring Boot Application 3.3 Understanding the CrudRepository Interface 3.4 Retrieve Data from a Database using Spring Data 3.4.1 Defining Query Methods 3.4.2 Implementing Pagination with PagingAndSortingRepository 3.4.3 Specifying Query using @NamedQuery 3.4.4 Specifying Query using @Query 3.4.5 Using Criteria API with Spring Data JPA 3.4.6 Using QueryDsl with Spring Data JPA 3.5 Managing Domain Object Relationships 3.6 Chapter Summary 4: Spring Boot – autoconfiguration and actuator 4.1 Understanding Spring Boot Auto-configuration 4.1.1 Motivation 4.1.2 Understanding @Conditional annotation 4.1.3 Deep Dive into Auto-configuration 4.2 Using Spring Boot DevTools 4.3 Creating Custom Failure Analyzer 4.4 Spring Boot Actuator 4.4.1 Configuring Spring Boot Actuator 4.4.2 Understanding Spring Boot Actuator Endpoints 4.4.3 Managing Spring Boot Actuator Endpoints 4.4.4 Health Endpoint Deep Dive 4.4.5 Creating a Custom Spring Boot HealthIndicator 4.4.6 Info Endpoint Deep Dive 4.4.7 Creating a Custom Spring Boot Actuator Endpoint 4.4.8 Spring Boot Actuator Metrics 4.4.9 Creating Custom Metrics 4.4.10 Metrics dashboard with Prometheus and Grafana 4.5 Chapter Summary 5: Securing Spring Boot applications 5.1 Introducing Spring Security 5.2 Hello Spring Security with Spring Boot 5.2.1 Filter, FilterChain, and Spring Security 5.2.2 Spring Security Architecture 5.2.3 Authenticating a User 5.2.4 Spring Security Auto-configuration 5.3 Implementing Spring Security 5.4 Chapter Summary 6: Implementing additional security with Spring Security 6.1 Enable HTTPS in a Spring Boot Application 6.2 Securing Secrets in Spring Cloud Vault 6.3 Implementing User Registration 6.4 Implementing Email Verification at User Registration 6.5 Implementing Login Attempt 6.6 Implementing Remember-Me Feature 6.7 Implementing reCAPTCHA 6.8 Enabling Two Factor Authentication with Google Authenticator 6.9 Authentication With OAuth2 6.10 Securing Actuator Endpoints 6.11 Chapter Summary 7: Developing RESTful Web Services with Spring Boot 7.1 Developing a RESTful API with Spring Boot 7.2 Managing Exceptions in a Spring Boot RESTful API 7.3 Testing a RESTful API 7.4 Documenting a RESTful API 7.5 Implementing RESTful API Versioning 7.6 Securing a RESTful API 7.7 Chapter Summary 8: Reactive Spring Boot Application Development 8.1 Introduction to Reactive Programming 8.1.1 Backpressure 8.1.2 Benefits of Reactive Programming 8.2 Understanding Project Reactor 8.3 Introducing Spring WebFlux 8.4 Testing Reactive Applications 8.5 Introduction to RSocket 8.6 Introduction to WebSocket 8.7 Chapter Summary 9: Deploying Spring Boot applications 9.1 Running Spring Boot Applications as an executable JAR file 9.2 Deploying Spring Boot applications as WAR in WildFly application server 9.3 Deploying Spring Boot applications in Cloud Foundry 9.4 Deploying Spring Boot applications in Heroku 9.5 Running Spring Boot applications as Docker Container 9.6 Deploying Spring Boot applications in Kubernetes Cluster 9.7 Deploying Spring Boot applications in RedHat OpenShift 9.8 Chapter Summary A: Generating and Building Spring Boot Projects A.1 Generating Spring Boot Applications with Spring Initializr A.2.1 Introducing Spring Initializr A.2 Bootstrapping and Executing a Spring Boot Application with Spring Boot CLI A.2.1 Installing the Spring Boot CLI B: Spring MVC and Thymeleaf Template Engine B.1 Revisiting Spring MVC B.1.1 Front Controller Design Pattern B.1.2 Understanding Request Processing B.2 Understanding Thymeleaf B.3 Enabling a Template Engine in Spring Boot B.4 Building an application with Thymeleaf
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.