Tag

BeanPostProcessor

0 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
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 29, 2024 · Backend Development

Deep Dive into Spring's @Autowired Annotation: Implementation and Injection Mechanism

This article provides a comprehensive analysis of Spring's @Autowired annotation, explaining its purpose, usage in constructor, field, and method injection, and detailing the underlying bean post‑processor logic, dependency resolution, and candidate selection that enable automatic dependency injection.

AutowiredBeanPostProcessorJava
0 likes · 10 min read
Deep Dive into Spring's @Autowired Annotation: Implementation and Injection Mechanism
JD Tech
JD Tech
Dec 11, 2024 · Backend Development

Optimizing SpringBoot Application Startup Speed: Diagnosis and Solutions

This article details how a SpringBoot advertising platform service with startup times of 400‑500 seconds was analyzed and optimized through Actuator monitoring, log inspection, Tomcat TLD scan disabling, asynchronous HBase warm‑up, custom BeanPostProcessors, async JSF consumer initialization, Tomcat version tuning, and hardware upgrades, achieving roughly a 60% reduction in launch time.

AsyncBackendBeanPostProcessor
0 likes · 20 min read
Optimizing SpringBoot Application Startup Speed: Diagnosis and Solutions
JD Tech Talk
JD Tech Talk
Dec 3, 2024 · Backend Development

Optimizing SpringBoot Application Startup Time: Diagnosis, BeanPostProcessor Tweaks, and Asynchronous JSF Consumer Initialization

This article documents the systematic analysis and multi‑step optimization of a SpringBoot application's slow startup, covering profiling with Actuator, Tomcat TLD scan disabling, HBase async warm‑up, custom BeanPostProcessor timing, and asynchronous JSF consumer initialization to cut launch time by over 60 percent.

AsyncBackendBeanPostProcessor
0 likes · 21 min read
Optimizing SpringBoot Application Startup Time: Diagnosis, BeanPostProcessor Tweaks, and Asynchronous JSF Consumer Initialization
JD Retail Technology
JD Retail Technology
Nov 27, 2024 · Backend Development

Optimizing SpringBoot Application Startup Time: Diagnosis and Solutions

This article documents the diagnosis of slow SpringBoot startup in a large‑scale advertising platform and presents a series of optimizations—including actuator monitoring, Tomcat TLD scan disabling, HBase async warm‑up, custom BeanPostProcessor timing, asynchronous JSF consumer refer, Tomcat version tuning, and hardware migration—that together reduce launch time by about 60%.

BackendBeanPostProcessorJava
0 likes · 20 min read
Optimizing SpringBoot Application Startup Time: Diagnosis and Solutions
Code Ape Tech Column
Code Ape Tech Column
Aug 19, 2024 · Backend Development

Why @Async Annotation Fails with Circular Dependencies in Spring and How to Resolve It

This article explains how Spring's @Async annotation interacts with circular dependencies, why it triggers BeanCurrentlyInCreationException, and provides multiple strategies—including adjusting dependencies, using @Lazy, or tweaking bean factory settings—to solve the problem.

AOPAsyncBeanPostProcessor
0 likes · 14 min read
Why @Async Annotation Fails with Circular Dependencies in Spring and How to Resolve It
Code Ape Tech Column
Code Ape Tech Column
Jul 10, 2024 · Backend Development

Optimizing SpringBoot Startup Time: Diagnosing Bean Scanning and Initialization Bottlenecks

This article explains how to identify and resolve the severe startup latency of a SpringBoot service by analyzing the SpringApplicationRunListener and BeanPostProcessor stages, narrowing scan packages, manually registering beans with JavaConfig, and handling cache auto‑configuration to reduce launch time from minutes to seconds.

AutoConfigurationBeanPostProcessorCache
0 likes · 18 min read
Optimizing SpringBoot Startup Time: Diagnosing Bean Scanning and Initialization Bottlenecks
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 5, 2024 · Backend Development

How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors

This article explains why @Configuration classes can cause circular dependency and custom BeanPostProcessor issues in Spring Boot, and provides practical solutions such as enabling circular references, using static @Bean methods, and preferring constructor injection for reliable bean injection.

BeanBeanPostProcessorCircular Dependency
0 likes · 6 min read
How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors
Selected Java Interview Questions
Selected Java Interview Questions
Apr 23, 2024 · Backend Development

Why Spring Skips Static Field Injection and How It Works Internally

This article explains Spring's bean creation process, focusing on the populateBean method and the AutowiredAnnotationBeanPostProcessor, and shows why static fields are ignored during field injection while also offering a way to inject them via a non‑static @Autowired method.

AutowiredBackendBeanPostProcessor
0 likes · 10 min read
Why Spring Skips Static Field Injection and How It Works Internally
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 19, 2024 · Backend Development

SpringBoot Extension Interfaces: BeanPostProcessor, BeanFactoryPostProcessor

This article introduces the key SpringBoot extension interfaces—including BeanPostProcessor, BeanFactoryPostProcessor, BeanDefinitionRegistryPostProcessor, SmartInstantiationAwareBeanPostProcessor, SmartInitializingSingleton, ApplicationContextInitializer, EnvironmentPostProcessor, and the *Runner interfaces—explaining their purposes, usage patterns, and providing concrete code examples to help developers customize and extend SpringBoot applications effectively.

Backend DevelopmentBeanPostProcessorExtension Interfaces
0 likes · 10 min read
SpringBoot Extension Interfaces: BeanPostProcessor, BeanFactoryPostProcessor
Top Architect
Top Architect
Mar 28, 2024 · Backend Development

Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor, and BeanPostProcessor

This article explains the five major Spring Boot extension points—ApplicationContextInitializer, ApplicationListener, Runner, BeanFactoryPostProcessor, and BeanPostProcessor—showing how to register custom implementations via SPI, where they are invoked in the startup flow, and providing code examples for each.

ApplicationListenerBeanFactoryPostProcessorBeanPostProcessor
0 likes · 9 min read
Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor, and BeanPostProcessor
Top Architect
Top Architect
Jan 30, 2024 · Backend Development

Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor and BeanPostProcessor

This article explains the five major extension points in Spring Boot—ApplicationContextInitializer, ApplicationListener, Runner, BeanFactoryPostProcessor, and BeanPostProcessor—showing how they are discovered via SPI, where they are invoked during the startup lifecycle, and how to implement custom ones with code examples.

ApplicationListenerBeanFactoryPostProcessorBeanPostProcessor
0 likes · 9 min read
Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor and BeanPostProcessor
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jan 17, 2024 · Backend Development

Master Spring’s Extension Points: BeanPostProcessor, BeanFactoryPostProcessor, and More

This article explains Spring and SpringBoot’s key extension points—including BeanPostProcessor, BeanFactoryPostProcessor, ApplicationContextInitializer, EnvironmentPostProcessor, and PropertySourceLocator—provides detailed code examples, registration steps, and trigger timing to help developers customize and extend Spring applications effectively.

BeanPostProcessorEnvironmentPostProcessorExtensionPoints
0 likes · 13 min read
Master Spring’s Extension Points: BeanPostProcessor, BeanFactoryPostProcessor, and More
Selected Java Interview Questions
Selected Java Interview Questions
Jan 10, 2024 · Backend Development

Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor, and BeanPostProcessor

This article explains the core extension points of Spring Boot—including ApplicationContextInitializer, ApplicationListener, Runner, BeanFactoryPostProcessor, and BeanPostProcessor—showing how they are discovered via SPI, registered in spring.factories, and invoked during the application startup lifecycle.

ApplicationListenerBeanFactoryPostProcessorBeanPostProcessor
0 likes · 7 min read
Understanding Spring Boot Extension Points: Initializers, Listeners, Runners, BeanFactoryPostProcessor, and BeanPostProcessor
Top Architect
Top Architect
May 10, 2023 · Backend Development

Implementing a Custom @Autowired-like Annotation in Spring

This article demonstrates how to create a simple custom annotation that mimics Spring's @Autowired functionality by defining a new annotation, a BeanPostProcessor, configuring beans in XML, and wiring everything together in a test class to show the injection working at runtime.

BackendBeanPostProcessorCustom Annotation
0 likes · 8 min read
Implementing a Custom @Autowired-like Annotation in Spring
Code Ape Tech Column
Code Ape Tech Column
Mar 22, 2023 · Backend Development

Why the @Async Annotation Triggers BeanCurrentlyInCreationException in Spring Circular Dependencies

This article explains how Spring's @Async annotation interacts with circular dependencies, why it leads to BeanCurrentlyInCreationException, and provides detailed insights into AsyncAnnotationBeanPostProcessor, AOP proxy creation, the three‑level cache mechanism, and practical solutions to avoid the issue.

AsyncBackendBeanPostProcessor
0 likes · 12 min read
Why the @Async Annotation Triggers BeanCurrentlyInCreationException in Spring Circular Dependencies
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
政采云技术
政采云技术
Oct 25, 2022 · Backend Development

SpringBoot Application Startup Optimization Techniques

This article explains how to analyze and accelerate SpringBoot startup by profiling with tools like Async Profiler, refactoring heavy business code, leveraging BeanPostProcessor for bean initialization metrics, using Spring's context indexer, and applying lazy initialization to reduce launch time in large Java backend services.

BeanPostProcessorLazy InitializationSpringBoot
0 likes · 11 min read
SpringBoot Application Startup Optimization Techniques
Top Architect
Top Architect
Jul 19, 2022 · Backend Development

How Spring Resolves Circular Dependencies Using Early Exposure and Three‑Level Caches

The article explains Spring's three‑level cache mechanism—singletonObjects, earlySingletonObjects, and singletonFactories—and how early exposure combined with BeanPostProcessor hooks enables the framework to break circular dependencies while still applying AOP proxies before full bean initialization.

AOPBeanPostProcessorCircular Dependency
0 likes · 13 min read
How Spring Resolves Circular Dependencies Using Early Exposure and Three‑Level Caches
Top Architect
Top Architect
Jun 23, 2022 · Backend Development

Spring Circular Dependency Resolution with Three‑Level Cache and Early AOP Proxy

This article explains how Spring resolves circular dependencies by using a three‑level cache and early bean exposure, detailing the roles of singletonObjects, earlySingletonObjects, and singletonFactories, and showing how Spring AOP proxies are applied during the process.

AOPBeanPostProcessorCircular Dependency
0 likes · 12 min read
Spring Circular Dependency Resolution with Three‑Level Cache and Early AOP Proxy