Tag

DependencyInjection

1 views collected around this technical thread.

Java Architect Essentials
Java Architect Essentials
May 31, 2025 · Backend Development

Simplifying Spring Boot Environment Configuration with the @Value Annotation

This article explains how the Spring @Value annotation can automatically inject configuration values from property files, support default values and SpEL expressions, and streamline environment-specific settings in Spring Boot applications, while also providing practical code examples and usage tips.

@ValueBackendConfiguration
0 likes · 8 min read
Simplifying Spring Boot Environment Configuration with the @Value Annotation
Top Architecture Tech Stack
Top Architecture Tech Stack
Mar 19, 2025 · Backend Development

Comprehensive Overview of Spring and Spring Boot Extension Points and Bean Lifecycle

This article provides a detailed walkthrough of Spring and Spring Boot's core concepts, explains the bean container refresh process, and enumerates all major extension interfaces—including ApplicationContextInitializer, BeanDefinitionRegistryPostProcessor, BeanFactoryPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor, various *Aware interfaces, @PostConstruct, InitializingBean, FactoryBean, SmartInitializingSingleton, CommandLineRunner, DisposableBean, and ApplicationListener—accompanied by code samples and usage scenarios.

BackendBeanLifecycleDependencyInjection
0 likes · 16 min read
Comprehensive Overview of Spring and Spring Boot Extension Points and Bean Lifecycle
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 27, 2025 · Backend Development

Understanding and Using Spring's @Import Annotation

This article explains the purpose, usage patterns, and internal mechanics of Spring's @Import annotation, including importing regular classes, ImportSelector implementations, and ImportBeanDefinitionRegistrar implementations, with complete code examples and a discussion of how Spring processes these imports at runtime.

@ImportConfigurationDependencyInjection
0 likes · 9 min read
Understanding and Using Spring's @Import Annotation
IT Services Circle
IT Services Circle
Jan 30, 2025 · Backend Development

15 Practical Spring Framework Tips for Developers

This article presents fifteen useful Spring techniques—including bean retrieval, event handling, custom interceptors, retry mechanisms, global exception handling, startup initialization, bean lifecycle methods, resource cleanup, dynamic configuration injection, conditional bean registration, caching, transaction management, bean loading order, AOP aspects, and conditional bean creation—each illustrated with clear Java code examples.

BackendDependencyInjectionJava
0 likes · 17 min read
15 Practical Spring Framework Tips for Developers
Java Tech Enthusiast
Java Tech Enthusiast
Nov 3, 2024 · Backend Development

Using @Service to Replace @Controller in Spring Boot

In Spring Boot, a class annotated with @Service can act as a web controller if it is discovered by component scanning and carries @RequestMapping (or method‑level mapping) annotations, allowing HTTP requests to be handled just like a traditional @Controller‑annotated bean.

AnnotationsControllerDependencyInjection
0 likes · 7 min read
Using @Service to Replace @Controller in Spring Boot
Architect's Guide
Architect's Guide
Oct 13, 2024 · Backend Development

Understanding Java SPI and Spring SPI: Implementation, Examples, and Source Code Analysis

This article explains Java's built‑in Service Provider Interface (SPI) mechanism, demonstrates how to implement and test SPI with sample code, analyzes its internal workings and limitations, and then shows how Spring extends SPI using spring.factories with comparable examples and source‑code insights.

BackendDependencyInjectionJava
0 likes · 7 min read
Understanding Java SPI and Spring SPI: Implementation, Examples, and Source Code Analysis
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 5, 2024 · Backend Development

Common SpringBoot BeanCreationException Errors and How to Fix Them

This article explains the most frequent SpringBoot BeanCreationException scenarios—including missing beans, duplicate beans, constructor issues, circular dependencies, and bean overriding—provides clear code examples, and offers practical solutions to resolve each problem.

BackendBeanCreationExceptionDependencyInjection
0 likes · 7 min read
Common SpringBoot BeanCreationException Errors and How to Fix Them
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 21, 2024 · Backend Development

Using Lombok @RequiredArgsConstructor to Reduce @Autowired Boilerplate in Spring Services

This article explains how Lombok's @RequiredArgsConstructor can replace repetitive @Autowired field injections in Spring services by generating a constructor for final fields, demonstrates the underlying annotation‑processing mechanism, and provides practical code examples for applying this technique in backend Java projects.

AutowireDependencyInjectionJava
0 likes · 8 min read
Using Lombok @RequiredArgsConstructor to Reduce @Autowired Boilerplate in Spring Services
Top Architect
Top Architect
Jun 21, 2024 · Backend Development

Deep Dive into Spring Boot Startup Sequence and Extension Points

This article provides a comprehensive explanation of Spring Boot's startup process, detailing each lifecycle extension point, the order of execution, common pitfalls with RPC/MQ/HTTP traffic, and includes runnable code examples to help developers master Spring initialization.

BackendDependencyInjectionJava
0 likes · 15 min read
Deep Dive into Spring Boot Startup Sequence and Extension Points
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 15, 2024 · Backend Development

Comprehensive Guide to Spring Boot Startup Sequence and Extension Points

This article provides an in‑depth explanation of the Spring Boot startup process, enumerates the key extension points, demonstrates their execution order with sample code and logs, and offers practical recommendations for correctly initializing RPC, MQ, and HTTP traffic.

BackendDependencyInjectionJava
0 likes · 15 min read
Comprehensive Guide to Spring Boot Startup Sequence and Extension Points
IT Architects Alliance
IT Architects Alliance
Jun 14, 2024 · Backend Development

In‑Depth Explanation of Spring Boot Startup Sequence and Extension Points

This article thoroughly explains the Spring Boot startup sequence, detailing each lifecycle extension point, common pitfalls with early RPC, HTTP, and MQ traffic, and provides code examples and answers to eleven critical questions to help developers master Spring initialization and avoid runtime failures.

BackendDependencyInjectionJava
0 likes · 13 min read
In‑Depth Explanation of Spring Boot Startup Sequence and Extension Points
Top Architect
Top Architect
Sep 8, 2022 · Backend Development

Commonly Used Spring Framework Annotations Explained

This article provides a comprehensive overview of the most frequently used Spring and Spring Boot annotations, explaining their purposes, usage scenarios, and includes practical Java code examples for core, MVC/REST, stereotype, data access, scheduling, asynchronous, and testing annotations.

AnnotationsBackendDependencyInjection
0 likes · 13 min read
Commonly Used Spring Framework Annotations Explained
Java Architect Essentials
Java Architect Essentials
Apr 15, 2022 · Backend Development

Comprehensive Guide to Common Spring Framework Annotations

This article provides a detailed overview of the most frequently used Spring annotations—including core, MVC/REST, Boot, stereotype, data access, scheduling, and testing annotations—explaining their purposes, usage rules, and providing Java code examples for each.

AnnotationsBackendDependencyInjection
0 likes · 13 min read
Comprehensive Guide to Common Spring Framework Annotations
Xianyu Technology
Xianyu Technology
Feb 10, 2022 · Mobile Development

Design and Implementation of an Android Chain Framework for Business Decoupling

The Android Chain framework decouples business modules by turning call points into annotated extension points, generating interface‑to‑implementation mappings at compile time, merging them via a Gradle plugin, and exposing them through a runtime singleton that supports priority, dynamic proxies, custom URL protocols, and ProGuard‑safe automatic registration.

AnnotationProcessingDependencyInjectionModularization
0 likes · 8 min read
Design and Implementation of an Android Chain Framework for Business Decoupling
Architect's Tech Stack
Architect's Tech Stack
Oct 28, 2021 · Backend Development

Commonly Used Spring Annotations – Core, MVC/REST, Boot, Stereotype, Transaction, Scheduling and Testing

This article provides a comprehensive overview of the most frequently used Spring annotations, covering core dependency‑injection annotations, MVC/REST mapping, Spring Boot configuration, stereotype components, transaction management, task scheduling, asynchronous execution, and testing support, with clear code examples for each.

AnnotationsBackendBoot
0 likes · 11 min read
Commonly Used Spring Annotations – Core, MVC/REST, Boot, Stereotype, Transaction, Scheduling and Testing
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Sep 10, 2021 · Backend Development

Using Object Pools in .NET (Core) to Reduce GC Overhead and Improve Performance

This article explains how .NET's Microsoft.Extensions.ObjectPool framework can be used to reuse objects, customize pooling policies, integrate with dependency injection, and extend pooling to collections, StringBuilder, arrays and memory buffers, thereby minimizing garbage‑collection pressure and boosting application throughput.

DependencyInjectionMemoryManagementcsharp
0 likes · 29 min read
Using Object Pools in .NET (Core) to Reduce GC Overhead and Improve Performance
Sohu Tech Products
Sohu Tech Products
Jan 28, 2021 · Mobile Development

Android Componentization: Architecture, Independent Debugging, Routing, and Communication

This article explains how to transform a large Android project into a componentized architecture by modularizing code, configuring Gradle for independent debugging, using ARouter for page navigation and service communication, handling fragment instances, distributing Application lifecycle events, and migrating legacy projects.

ARouterDependencyInjectionGradle
0 likes · 32 min read
Android Componentization: Architecture, Independent Debugging, Routing, and Communication
Architect's Tech Stack
Architect's Tech Stack
Jan 11, 2021 · Backend Development

Commonly Used Spring Framework Annotations and Their Usage

This article introduces the most commonly used Spring framework annotations—including core, MVC/REST, Boot, stereotype, data access, scheduling, and testing annotations—explains their purposes, usage scenarios, and provides Java code examples illustrating how to apply them in typical Spring applications.

AnnotationsBackendDependencyInjection
0 likes · 12 min read
Commonly Used Spring Framework Annotations and Their Usage
Top Architect
Top Architect
Oct 12, 2020 · Backend Development

Comprehensive Guide to Common Spring Framework Annotations

This article provides a comprehensive overview of the most commonly used Spring Framework annotations, including core, stereotype, Spring Boot, MVC/REST, data access, scheduling, and testing annotations, with explanations and code examples illustrating their usage in Java backend development.

AnnotationsBackendDependencyInjection
0 likes · 12 min read
Comprehensive Guide to Common Spring Framework Annotations
Selected Java Interview Questions
Selected Java Interview Questions
Sep 30, 2019 · Backend Development

Spring Bean Lifecycle: Definition, Initialization, Invocation, and Destruction

This article explains the complete Spring Bean lifecycle—including definition via XML, various initialization methods, three ways to obtain and use a bean, and bean destruction techniques—illustrated with Java code snippets and a diagram for clear understanding.

BeanDependencyInjectionJava
0 likes · 8 min read
Spring Bean Lifecycle: Definition, Initialization, Invocation, and Destruction