Tagged articles
34 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 27, 2026 · Backend Development

One‑Line Annotation for Method Monitoring in Spring Boot

This article demonstrates how to add a single @Monitor annotation to Spring Boot 3.5.0 services and automatically obtain call‑trace and execution‑time metrics by leveraging Spring AOP, SimpleTraceInterceptor, PerformanceMonitorInterceptor, custom advisors, and a BeanPostProcessor, with full code examples and a test controller.

BeanPostProcessorCustom AnnotationMethod Monitoring
0 likes · 6 min read
One‑Line Annotation for Method Monitoring in Spring Boot
Top Architect
Top Architect
Aug 21, 2025 · Backend Development

Master 10 Essential Spring Extension Points for Robust Backend Development

This article walks through the ten most useful Spring extension points—including global exception handling, custom interceptors, bean access, @Import usage, startup runners, BeanDefinition modification, initialization callbacks, BeanPostProcessor hooks, destroy callbacks, and custom scopes—providing clear explanations and ready‑to‑use code examples for each.

BackendBeanFactoryBeanPostProcessor
0 likes · 17 min read
Master 10 Essential Spring Extension Points for Robust Backend Development
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.

BeanPostProcessorCacheJavaConfig
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 Cloud Developers
JD Cloud Developers
Dec 3, 2024 · Backend Development

How to Slash SpringBoot Startup Time by 60%: Proven Optimization Techniques

This article details a comprehensive set of optimizations that reduced a SpringBoot application's startup time from 400‑500 seconds to about 130‑150 seconds, covering Actuator monitoring, Tomcat TLD scan disabling, HBase asynchronous warm‑up, custom BeanPostProcessor timing, JSF consumer proxy refactoring, Tomcat version impacts, and hardware upgrades.

Backend DevelopmentBeanPostProcessorJava
0 likes · 22 min read
How to Slash SpringBoot Startup Time by 60%: Proven Optimization Techniques
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.

AsyncBeanPostProcessorJava
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
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.

BeanPostProcessorJavacircular-dependency
0 likes · 6 min read
How to Resolve Common Spring Boot Configuration Pitfalls and Circular Dependency Errors
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.

ApplicationContextInitializerApplicationListenerBeanFactoryPostProcessor
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.

ApplicationContextInitializerApplicationListenerBeanFactoryPostProcessor
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.

ApplicationContextInitializerApplicationListenerBeanFactoryPostProcessor
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.

AsyncBeanPostProcessorcircular-dependency
0 likes · 12 min read
Why the @Async Annotation Triggers BeanCurrentlyInCreationException in Spring Circular Dependencies
Su San Talks Tech
Su San Talks Tech
Mar 12, 2023 · Backend Development

Unlocking Spring’s Hidden Extension Points: From FactoryBean to @Import and Beyond

This article provides a comprehensive guide to Spring’s extension mechanisms, covering FactoryBean, @Import, bean lifecycle callbacks, BeanPostProcessor, BeanFactoryPostProcessor, the SPI system, Spring Boot startup hooks, event publishing, and custom XML namespaces, complete with runnable code examples and diagrams.

BeanPostProcessorEventFactoryBean
0 likes · 37 min read
Unlocking Spring’s Hidden Extension Points: From FactoryBean to @Import and Beyond
政采云技术
政采云技术
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.

BeanPostProcessorSpringBootlazy-initialization
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.

BeanPostProcessorJavaThree-level Cache
0 likes · 13 min read
How Spring Resolves Circular Dependencies Using Early Exposure and Three‑Level Caches
Top Architect
Top Architect
Jun 12, 2022 · Backend Development

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

This article explains Spring's circular‑dependency solution, detailing the early‑exposure mechanism, the three‑level cache (singletonObjects, earlySingletonObjects, singletonFactories), how BeanPostProcessors and AOP proxies interact during bean creation, and why the third‑level cache is essential for correct bean wiring.

Backend DevelopmentBeanPostProcessorThree-level Cache
0 likes · 14 min read
How Spring Resolves Circular Dependencies Using Early Exposure and a Three‑Level Cache
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 22, 2021 · Backend Development

Unlock Spring BeanPostProcessor & BeanFactoryPostProcessor for Backend Customization

This article explains how to extend the Spring IoC container using custom BeanPostProcessor, BeanFactoryPostProcessor, and FactoryBean implementations, covering registration methods, ordering, interaction with AOP proxies, and practical code examples for tracing bean creation and externalizing configuration properties.

Backend DevelopmentBeanPostProcessorJava
0 likes · 13 min read
Unlock Spring BeanPostProcessor & BeanFactoryPostProcessor for Backend Customization
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 23, 2021 · Backend Development

Unlock Spring’s Aware Interfaces: Access ApplicationContext, Environment, and BeanFactory

This tutorial explains how implementing Spring’s *Aware interfaces lets beans obtain ApplicationContext, Environment, and BeanFactory objects, walks through the underlying processing mechanism, and provides concrete code examples with the relevant Spring classes and lifecycle hooks.

Aware InterfaceBeanPostProcessorJava
0 likes · 3 min read
Unlock Spring’s Aware Interfaces: Access ApplicationContext, Environment, and BeanFactory
Selected Java Interview Questions
Selected Java Interview Questions
May 1, 2020 · Backend Development

Understanding the Bean Lifecycle in Spring ApplicationContext

This article explains the Spring bean lifecycle within an ApplicationContext, detailing container‑level, factory‑level, and bean‑level post‑processors, showing how to implement and register custom processors, and providing code examples and XML configuration to illustrate the execution order and practical usage.

BackendBeanPostProcessorJava
0 likes · 9 min read
Understanding the Bean Lifecycle in Spring ApplicationContext
Ctrip Technology
Ctrip Technology
Sep 4, 2017 · Backend Development

Applying Spring BeanPostProcessor for A/B Testing and Dynamic Routing

This article introduces Spring's BeanPostProcessor, explains its two callback methods, and demonstrates through a real‑world A/B testing scenario how custom annotations and a post‑processor can inject dynamic proxies to simplify routing logic and improve code maintainability.

A/B testingBeanPostProcessorDynamic Proxy
0 likes · 5 min read
Applying Spring BeanPostProcessor for A/B Testing and Dynamic Routing