Conference India 2026 โ€ข Nov 26, 2026 โ€ข Session details

Spring Boot Beyond the Defaults: A Practical Framework for Overriding Autoconfiguration

Pradeep Kumar

Fighting Spring Boot autoconfiguration often triggers messy configuration sprawl and unnecessary bean replacements. Learn a four-level framework to safely override defaults while keeping maintenance overhead to a minimum.

Pause
Mute Enter Fullscreen
#1 about 5 min

Understanding Spring Boot autoconfiguration and observability tools

Spring Boot abstracts infrastructure setup with sensible defaults, requiring developers to use tools like Maven dependency trees and Actuator endpoints to inspect loaded beans and conditions.

#2 about 3 min

First two levels: property tuning and extension points

Overriding defaults begins with simple property adjustments for settings, moving next to implementing framework extension interfaces to customize behavior without owning the underlying beans.

#3 about 4 min

Third and fourth levels: dependency swapping and bean replacement

When property and behavioral extensions are insufficient, developers can swap starter dependencies or completely replace core beans like the security filter chain to take full ownership.

#4 about 2 min

Decision framework for overriding Spring Boot defaults

Balancing control against maintenance effort requires stopping at the lowest intervention level that solves the problem before resorting to full bean replacement.

#5 about 5 min

Inspecting the Conditions Evaluation Report and tuning properties

Inspecting positive and negative matches in the Conditions Evaluation Report reveals active beans, while a simple property tweak suppresses null fields in JSON responses.

#6 about 4 min

Customizing behavior with interceptors and JSON builder customizers

Formatting dates and tracing requests without replacing core beans is achieved by implementing customizer interfaces for JSON formatting, CORS, and correlation ID interceptors.

#7 about 3 min

Swapping Tomcat for Jetty using Maven dependency exclusions

Analyzing the Maven dependency tree allows excluding the default embedded Tomcat server in pom.xml and seamlessly replacing it with Jetty without altering application code.

#8 about 5 min

Replacing the Spring Security filter chain and user service

Defining a custom SecurityFilterChain and UserDetailsService suppresses default security autoconfiguration, transferring full responsibility for endpoint protection to the developer.

#9 about 4 min

Securing endpoints with role-based access control

Completing the custom security bean implementation requires explicitly configuring role-based authorization rules to prevent unauthorized access and return proper HTTP status codes.

Matching moments

3:19 min

Managing Spring configurations and bean definition overrides

Vadzim Prudnikau Vadzim Prudnikau ยท World Congress 2026 Europe

1:35 min

Optimizing Spring Boot applications with AOT caching

Ana Maria Mihalceanu Ana Maria Mihalceanu ยท World Congress 2026 Europe

4:00 min

Exploring Spring Boot, managed instances, and Project Leyden

Vadym Kazulkin Vadym Kazulkin ยท Europe 2026 Virtual

3:03 min

Introduction to building shared Spring Boot libraries

Vadzim Prudnikau Vadzim Prudnikau ยท World Congress 2026 Europe

1:15 min

Understanding Spring framework initialization and runtime configuration processes

Eric Deandrea Eric Deandrea ยท World Congress 2025

6:13 min

Addressing framework compatibility and overall language evolution

Ron Veen Ron Veen ยท World Congress 2022