Tag

JavaConfig

1 views collected around this technical thread.

macrozheng
macrozheng
Feb 5, 2025 · Backend Development

How to Cut Spring Boot Startup Time from 7 Minutes to 40 Seconds

This article explains why a SpringBoot service took 6‑7 minutes to start, shows how to pinpoint the bottlenecks using SpringApplicationRunListener and BeanPostProcessor, and presents concrete optimizations—reducing scan paths, manually registering beans, and fixing cache auto‑configuration—to shrink the local startup time to about 40 seconds.

Auto‑ConfigurationBeanPostProcessorCache
0 likes · 18 min read
How to Cut Spring Boot Startup Time from 7 Minutes to 40 Seconds
Top Architecture Tech Stack
Top Architecture Tech Stack
Jan 20, 2025 · Backend Development

Optimizing SpringBoot Startup Time: Reducing Bean Scanning Overhead and Monitoring Bean Initialization

This article explains how to diagnose and dramatically reduce SpringBoot startup latency by analyzing SpringApplicationRunListener and BeanPostProcessor phases, limiting component scanning paths, using JavaConfig for explicit bean registration, monitoring bean initialization times, and handling auto-configuration pitfalls such as cache manager duplication.

AutoConfigurationBeanScanningJavaConfig
0 likes · 19 min read
Optimizing SpringBoot Startup Time: Reducing Bean Scanning Overhead and Monitoring Bean Initialization
Java Architect Essentials
Java Architect Essentials
Jan 23, 2024 · Backend Development

Optimizing SpringBoot Startup Time: Analyzing and Reducing Bean Scanning and Initialization Overhead

This article investigates why a SpringBoot service takes 6‑7 minutes to start, identifies the heavy cost of component scanning and bean post‑processing, demonstrates how to monitor each phase with custom SpringApplicationRunListener and BeanPostProcessor implementations, and presents practical JavaConfig and starter‑based solutions that cut startup time from minutes to seconds.

AutoConfigurationBeanScanningCache
0 likes · 18 min read
Optimizing SpringBoot Startup Time: Analyzing and Reducing Bean Scanning and Initialization Overhead
Architecture Digest
Architecture Digest
Oct 23, 2023 · Backend Development

Optimizing SpringBoot Startup Time: Analyzing Bean Scanning and Initialization Bottlenecks

This article investigates why a SpringBoot service takes 6‑7 minutes to start, identifies the bean‑scanning and bean‑initialization phases as the main performance culprits, and presents concrete JavaConfig and starter‑based solutions to reduce startup time to around 40 seconds while handling cache auto‑configuration pitfalls.

AutoConfigurationBeanScanningCache
0 likes · 19 min read
Optimizing SpringBoot Startup Time: Analyzing Bean Scanning and Initialization Bottlenecks
Top Architect
Top Architect
Mar 28, 2023 · Backend Development

Optimizing SpringBoot Startup Time: Diagnosing Bean Scanning and Initialization Bottlenecks

This article explains how to identify and reduce the excessive startup latency of a SpringBoot service by profiling the run method, customizing SpringApplicationRunListener and BeanPostProcessor, trimming component‑scan paths, and leveraging JavaConfig and starter mechanisms to avoid unnecessary bean loading and auto‑configuration overhead.

AutoConfigurationBeanScanningCache
0 likes · 18 min read
Optimizing SpringBoot Startup Time: Diagnosing Bean Scanning and Initialization Bottlenecks
Architect
Architect
Mar 25, 2023 · Backend Development

Optimizing SpringBoot Startup Time: Diagnosing Bean Scanning and Initialization Bottlenecks

This article analyzes why a SpringBoot service takes minutes to start, identifies the bean‑scanning and bean‑initialization phases as the main performance culprits, and presents practical solutions such as narrowing scan packages, using JavaConfig for explicit bean registration, customizing SpringApplicationRunListener and BeanPostProcessor for timing, and leveraging SpringBoot starter mechanisms to streamline cache configuration.

AutoConfigurationBeanScanningCache
0 likes · 18 min read
Optimizing SpringBoot Startup Time: Diagnosing Bean Scanning and Initialization Bottlenecks
Code Ape Tech Column
Code Ape Tech Column
Feb 20, 2023 · Backend Development

Optimizing SpringBoot Startup Time: Analyzing Bean Scanning and Injection Bottlenecks

This article explains how to diagnose and dramatically reduce the long startup time of a SpringBoot service by profiling the SpringApplicationRunListener and BeanPostProcessor phases, trimming excessive component scanning, manually configuring beans with JavaConfig, and understanding the impact of SpringBoot's auto‑configuration mechanisms.

AutoConfigurationBeanPostProcessorBeanScanning
0 likes · 18 min read
Optimizing SpringBoot Startup Time: Analyzing Bean Scanning and Injection Bottlenecks