Tagged articles

Dependency Injection

514 articles · Page 1 of 6
ITPUB
ITPUB
Jun 23, 2026 · Backend Development

Why AI Coding Feels Much Slower in Java and How Five Harness Techniques Fix It

The article explains why AI‑assisted coding loops that run instantly on lightweight projects stall in Java microservices, and presents five concrete harness engineering principles—dependency inversion, zero‑intrusion profile isolation, CLI tool integration, CLAUDE.md documentation, and verification scripts—to create a fully local, AI‑friendly development environment.

AI codingCLIDependency Injection
0 likes · 23 min read
Why AI Coding Feels Much Slower in Java and How Five Harness Techniques Fix It
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 22, 2026 · Backend Development

Why Prefer @Bean Over @Component? Avoid Critical Spring Boot Pitfalls

The article explains the fundamental differences between @Component and @Bean in Spring Boot 3.5.0, demonstrates how @Bean provides finer control, solves five common configuration problems, and reveals a subtle proxy‑related bug that causes multiple bean instances when @Component is misused on configuration classes.

BeanComponentConfiguration
0 likes · 8 min read
Why Prefer @Bean Over @Component? Avoid Critical Spring Boot Pitfalls
Java Tech Workshop
Java Tech Workshop
Jun 21, 2026 · Backend Development

Mastering Spring’s BeanPostProcessor: The Ultimate Hook for Advanced Container Customization

Spring’s BeanPostProcessor is a global container hook that intercepts every bean’s lifecycle, enabling custom initialization, dynamic proxying, annotation processing, and resource cleanup; the article explains its three-tier hierarchy, execution order, priority rules, practical use‑cases like auto‑injection, logging, data masking, and common pitfalls.

AOPBeanPostProcessorData Masking
0 likes · 18 min read
Mastering Spring’s BeanPostProcessor: The Ultimate Hook for Advanced Container Customization
Java Tech Workshop
Java Tech Workshop
Jun 19, 2026 · Backend Development

BeanFactory vs ApplicationContext: The Real Differences You Must Know

The article explains how BeanFactory is a minimal, lazy‑loading container that only creates and caches beans, while ApplicationContext extends it with eager pre‑loading, full annotation, AOP, transaction, environment and event support, and outlines their respective use cases and pitfalls.

ApplicationContextBeanFactoryDependency Injection
0 likes · 9 min read
BeanFactory vs ApplicationContext: The Real Differences You Must Know
Java Tech Workshop
Java Tech Workshop
Jun 15, 2026 · Backend Development

Understanding the Full Spring Bean Lifecycle: From Instantiation to Destruction

This article walks through the complete Spring Bean lifecycle—covering scanning, instantiation, dependency injection, initialization, AOP proxy creation, and destruction—while highlighting common pitfalls, the differences for prototype and lazy‑loaded beans, and practical debugging tips.

AOPBean LifecycleDependency Injection
0 likes · 10 min read
Understanding the Full Spring Bean Lifecycle: From Instantiation to Destruction
Golang Shines
Golang Shines
Jun 14, 2026 · Fundamentals

Understanding How Interfaces Work in Go

This article explains Go's interface type, covering its basic concept, syntax, simple and advanced examples—including empty interfaces, interface composition, standard library usage, sorting, error handling, and dependency injection—while also discussing implementation details like value vs. pointer receivers and summarizing key characteristics.

Dependency InjectionError handlingGo
0 likes · 13 min read
Understanding How Interfaces Work in Go
Java Tech Workshop
Java Tech Workshop
Jun 13, 2026 · Backend Development

Which DI Injection Method Should You Use in Production? Field vs Setter vs Constructor

The article compares Spring's three dependency‑injection styles—field, setter, and constructor—showing code, execution order, source‑code mechanics, risks such as null‑pointer windows and reflection tampering, and concludes that constructor injection (preferably with Lombok @RequiredArgsConstructor) is the production‑grade choice.

Constructor InjectionDependency InjectionField Injection
0 likes · 10 min read
Which DI Injection Method Should You Use in Production? Field vs Setter vs Constructor
Top Architect
Top Architect
Jun 10, 2026 · Backend Development

Why Spring Boot Plugin Development Is a Game‑Changer

This article explains how Spring Boot’s plugin architecture—using SPI, custom configuration, and Spring Factories—enables modular, extensible services, demonstrates step‑by‑step implementations with code samples, and shows real‑world use cases for building flexible micro‑service components.

Dependency InjectionJavaMicroservices
0 likes · 22 min read
Why Spring Boot Plugin Development Is a Game‑Changer
Golang Shines
Golang Shines
May 28, 2026 · Backend Development

From a Log Key Mistake to Safer Go slog: Lessons and Practical Tricks

After a production incident caused by a wrong log field name, the author explores Go's standard slog library, reveals its classic ...any trap, and presents four concrete techniques—dependency‑injected logger, type‑safe LogAttrs, centralized field helpers, and sloglint enforcement—to build a reliable, maintainable logging system.

Dependency InjectionGoLogging
0 likes · 11 min read
From a Log Key Mistake to Safer Go slog: Lessons and Practical Tricks
Coder Trainee
Coder Trainee
May 10, 2026 · Backend Development

Spring Boot Source Code Deep Dive (Part 7): Full Recap and Ultimate Interview Guide

The final installment of the Spring Boot source‑code series consolidates the previous six episodes—covering startup flow, auto‑configuration, IoC container, bean lifecycle, circular dependencies, and SPI—while providing a complete knowledge map, 20 interview‑question templates, practical study tips, and a roadmap for further learning and contribution.

Auto-ConfigurationBean LifecycleConfiguration
0 likes · 14 min read
Spring Boot Source Code Deep Dive (Part 7): Full Recap and Ultimate Interview Guide
Coder Trainee
Coder Trainee
May 8, 2026 · Backend Development

How Spring Boot Instantiates Beans and Resolves Circular Dependencies

This article walks through Spring Boot's bean creation pipeline—from the initial getBean call through doGetBean, the three‑level singleton cache, and the detailed steps of createBean, populateBean, and initializeBean—explaining how circular dependencies are safely resolved and where AOP proxies are generated.

AOPBeanBean Lifecycle
0 likes · 14 min read
How Spring Boot Instantiates Beans and Resolves Circular Dependencies
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Apr 30, 2026 · Backend Development

5 Common Spring Boot Anti‑Patterns You Must Avoid

The article examines five high‑frequency Spring Boot anti‑patterns—field injection, returning entities from controllers, overusing @Transactional, generic exception handling, and embedding business logic in controllers—showing problematic code snippets, real‑world consequences, and concise refactored examples to improve testability, performance, and maintainability.

Anti-PatternController DesignDependency Injection
0 likes · 9 min read
5 Common Spring Boot Anti‑Patterns You Must Avoid
AI Engineer Programming
AI Engineer Programming
Apr 29, 2026 · Fundamentals

Balancing Core Stability and Extensibility: Design and Implementation of pi Agent’s Extension System

The article explains how the pi agent’s extension system resolves the tension between core stability and capability extensibility by using inversion of control, dependency injection, adapter and event‑driven patterns, two‑phase initialization, and concrete Python implementations, while comparing it with other plugin architectures.

AI AgentDependency InjectionPython
0 likes · 26 min read
Balancing Core Stability and Extensibility: Design and Implementation of pi Agent’s Extension System
AndroidPub
AndroidPub
Mar 26, 2026 · Mobile Development

Mastering Android Dependency Injection: Hilt vs Koin Explained

This comprehensive guide demystifies Android dependency injection, covering core concepts, manual implementation, the role of composition roots, and a detailed comparison of Hilt and Koin—including their architectures, advantages, trade‑offs, and practical tips for choosing the right framework in real‑world projects.

AndroidDI FrameworksDependency Injection
0 likes · 29 min read
Mastering Android Dependency Injection: Hilt vs Koin Explained
java1234
java1234
Mar 15, 2026 · Backend Development

BeanFactory vs ApplicationContext in Spring: Key Differences Explained

This article compares Spring's BeanFactory and ApplicationContext, detailing their roles, loading strategies, feature sets, code examples, and recommended usage scenarios, helping developers choose the appropriate container for their projects.

ApplicationContextBeanFactoryDependency Injection
0 likes · 6 min read
BeanFactory vs ApplicationContext in Spring: Key Differences Explained
LuTiao Programming
LuTiao Programming
Mar 9, 2026 · Backend Development

Spring Boot’s Hidden Power: 10‑Step Bean Lifecycle Most Developers Miss

Most Spring Boot developers use @Service, @Component and @Autowired daily, yet few understand the ten‑step lifecycle a bean undergoes—from loading its definition to destruction—information that unlocks advanced features such as custom initialization, AOP, and dynamic proxy creation.

Bean LifecycleBeanPostProcessorDependency Injection
0 likes · 7 min read
Spring Boot’s Hidden Power: 10‑Step Bean Lifecycle Most Developers Miss
Senior Xiao Ying
Senior Xiao Ying
Mar 6, 2026 · Backend Development

5 Ways to Inject Spring Boot Implementations (Qualifier, Collections, Profile)

When a Spring Boot interface has several implementations, injecting the correct bean can cause NoUniqueBeanDefinitionException; this article explains five injection techniques—@Qualifier with constructor injection, @Primary, @Resource, collection or Map injection, and @Profile-based environment isolation—showing code examples, usage rules, and best‑practice recommendations.

@Primary@Profile@Qualifier
0 likes · 7 min read
5 Ways to Inject Spring Boot Implementations (Qualifier, Collections, Profile)
Architect's Guide
Architect's Guide
Mar 6, 2026 · Backend Development

Mastering Java and Spring SPI: From Basics to Advanced Implementation

This article explains Java's built‑in Service Provider Interface (SPI) mechanism, demonstrates how to create and load SPI implementations with ServiceLoader, and then shows how Spring extends SPI using spring.factories with detailed code examples and source‑code analysis.

Backend DevelopmentDependency InjectionSPI
0 likes · 8 min read
Mastering Java and Spring SPI: From Basics to Advanced Implementation
Java Architect Handbook
Java Architect Handbook
Feb 25, 2026 · Backend Development

Why IDEA Warns on @Autowired but Not @Resource? A Deep Dive into Spring DI

This article examines Spring's common dependency injection methods, compares @Autowired and @Resource annotations, outlines the pros and cons of constructor, setter, and field injection, highlights the drawbacks of field injection, and explains why IntelliJ IDEA only flags @Autowired with a warning.

AutowiredDependency InjectionIDEA
0 likes · 7 min read
Why IDEA Warns on @Autowired but Not @Resource? A Deep Dive into Spring DI
macrozheng
macrozheng
Feb 24, 2026 · Backend Development

Why IDEA Flags @Autowired but Ignores @Resource – A Deep Dive into Spring DI

This article explains the different dependency injection methods in Spring, compares @Autowired and @Resource, outlines the advantages and disadvantages of constructor, setter, and field injection, and clarifies why IntelliJ IDEA only warns about @Autowired usage.

AutowiredDependency InjectionIDEA
0 likes · 5 min read
Why IDEA Flags @Autowired but Ignores @Resource – A Deep Dive into Spring DI
LuTiao Programming
LuTiao Programming
Feb 12, 2026 · Backend Development

Understanding @Resource in Spring Boot: Why 90% of Developers Misuse It

The article explains the JSR‑250 @Resource annotation in Spring Boot, detailing its name‑first injection logic, differences from @Autowired, common pitfalls with multiple implementations, and proper usage patterns—including explicit name specification and why constructor injection is preferred—providing code examples and interview‑ready explanations.

AutowiredDependency InjectionJava
0 likes · 9 min read
Understanding @Resource in Spring Boot: Why 90% of Developers Misuse It
LuTiao Programming
LuTiao Programming
Feb 9, 2026 · Backend Development

Stop Memorizing Design Patterns—Use This Engineering Decision Tree to Solve Spring Boot Complexity

The article explains why design patterns often feel useless in Spring Boot projects, introduces a three‑branch decision tree that maps common sources of complexity to suitable patterns, and demonstrates a concrete refactor of an if‑else payment service into a clean, Spring‑managed strategy‑based solution.

Decision TreeDependency InjectionSpring Boot
0 likes · 9 min read
Stop Memorizing Design Patterns—Use This Engineering Decision Tree to Solve Spring Boot Complexity
Data STUDIO
Data STUDIO
Jan 29, 2026 · Fundamentals

10 Python Design Patterns to Eliminate Spaghetti Code and Build Maintainable Projects

The article explains why architecture matters, introduces ten essential Python design patterns—such as Dependency Injection, Strategy, Builder, Event‑Driven, Repository, Mapper, Pipeline, Command, Specification, and Plugin Registry—with concrete code examples and practical advice to transform messy scripts into clean, scalable applications.

Builder PatternDependency InjectionPlugin system
0 likes · 44 min read
10 Python Design Patterns to Eliminate Spaghetti Code and Build Maintainable Projects
JakartaEE China Community
JakartaEE China Community
Jan 20, 2026 · Backend Development

How to Build AI‑Powered Java Apps with Helidon and LangChain4j

This article explains how Helidon 4.2 integrates the LangChain4j framework to simplify adding large‑language‑model capabilities, covering core features, Maven setup, configuration, component creation, dependency injection, annotations, custom tools, and sample applications such as a coffee‑shop assistant.

AI integrationDependency InjectionHelidon
0 likes · 14 min read
How to Build AI‑Powered Java Apps with Helidon and LangChain4j
java1234
java1234
Jan 6, 2026 · Backend Development

What’s the Difference Between @Autowired and @Resource in Spring Boot?

This article explains how @Autowired and @Resource differ in Spring Boot, covering their injection mechanisms, priority rules, applicable environments, and code examples, helping developers choose the appropriate annotation based on type‑based or name‑based injection needs.

AutowiredDependency InjectionJava
0 likes · 4 min read
What’s the Difference Between @Autowired and @Resource in Spring Boot?
Open Source Tech Hub
Open Source Tech Hub
Jan 1, 2026 · Backend Development

What’s New in Yii 3? A Deep Dive into Its Modern Backend Architecture

Yii 3, the latest release of the PHP framework, introduces a modular package ecosystem, flexible dependency injection, PSR‑first design, advanced caching, improved database abstraction, and long‑running work mode, offering developers a high‑performance, standards‑compliant foundation for web, API, and console applications.

Backend DevelopmentDependency InjectionPHP
0 likes · 12 min read
What’s New in Yii 3? A Deep Dive into Its Modern Backend Architecture
Code Wrench
Code Wrench
Dec 27, 2025 · Backend Development

Mastering Go Dependency Injection: Manual vs Google Wire Explained

This article examines the challenges of tangled initialization in Go's main.go, demonstrates a manual DI container for an order service, and contrasts it with Google’s compile‑time wire tool for a user service, offering practical code examples, step‑by‑step guidance, and recommendations for projects of different sizes.

Dependency InjectionGoGoogle Wire
0 likes · 10 min read
Mastering Go Dependency Injection: Manual vs Google Wire Explained
Architect's Guide
Architect's Guide
Dec 21, 2025 · Backend Development

How Spring Solves Circular Dependencies: Inside the Three‑Level Cache

This article provides a detailed walkthrough of Spring's circular‑dependency resolution, explaining the three‑level cache mechanism, step‑by‑step bean creation flow, and the underlying source‑code logic, complete with diagrams and code examples for deep understanding.

AOPDependency InjectionJava
0 likes · 12 min read
How Spring Solves Circular Dependencies: Inside the Three‑Level Cache
Tech Freedom Circle
Tech Freedom Circle
Dec 20, 2025 · Backend Development

How SpringBoot Loads Classes: Deep Dive into ClassLoaders and Bean Creation

This article dissects the SpringBoot class‑loading mechanism, explaining how the JVM parent‑delegation model is selectively overridden with custom class loaders like LaunchedURLClassLoader and RestartClassLoader, and how these changes integrate with Spring's bean lifecycle, auto‑configuration, and practical troubleshooting techniques.

AutoConfigurationBeanDependency Injection
0 likes · 37 min read
How SpringBoot Loads Classes: Deep Dive into ClassLoaders and Bean Creation
Java One
Java One
Dec 12, 2025 · Backend Development

Understanding Spring Bean Scopes: When Singleton Becomes Prototype

This article explains how Spring manages bean instances, compares singleton and prototype scopes with concrete code examples, and shows why two injected beans may be equal or different depending on the @Scope annotation applied to the component class.

Bean ScopeDependency InjectionJava
0 likes · 3 min read
Understanding Spring Bean Scopes: When Singleton Becomes Prototype
Top Architect
Top Architect
Dec 11, 2025 · Backend Development

Mastering Java Plugin Architecture: From SPI to Spring Factories

This article explains how to implement plugin mechanisms in Java using SPI and Spring Boot's spring.factories, covering benefits, common approaches, detailed code examples, custom configuration loading, and a complete real‑world case study to guide developers in building extensible applications.

Dependency InjectionJavaSPI
0 likes · 22 min read
Mastering Java Plugin Architecture: From SPI to Spring Factories
Selected Java Interview Questions
Selected Java Interview Questions
Nov 25, 2025 · Backend Development

Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection

This article explains why the @Autowired field injection in Spring is often discouraged, compares it with @Resource and constructor injection, shows practical code examples and error scenarios, and provides guidance on choosing the most appropriate dependency‑injection method for robust backend development.

AutowiredBackend DevelopmentConstructor Injection
0 likes · 9 min read
Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection
Lobster Programming
Lobster Programming
Nov 10, 2025 · Backend Development

When to Use @Resource vs @Autowired in Spring: Key Differences Explained

This article compares @Resource and @Autowired in the Spring framework, covering their origins, injection order, supported injection styles, and ideal usage scenarios to help developers choose the right annotation for loosely coupled, maintainable applications.

AutowiredBackend DevelopmentDependency Injection
0 likes · 2 min read
When to Use @Resource vs @Autowired in Spring: Key Differences Explained
Sohu Tech Products
Sohu Tech Products
Oct 23, 2025 · Mobile Development

How We Cut iOS Incremental Build Time by 75% with SPM and a Three‑Layer Architecture

Facing 200‑second peak compile times, the FoxFriend iOS team replaced CocoaPods with Swift Package Manager and introduced a three‑layer interface‑implementation‑service architecture, reducing average incremental builds from 120 seconds to 50 seconds, saving 3.1 developer‑hours per day and achieving a 58% overall compile‑time reduction.

Build OptimizationDependency InjectionSwift Package Manager
0 likes · 18 min read
How We Cut iOS Incremental Build Time by 75% with SPM and a Three‑Layer Architecture
DeWu Technology
DeWu Technology
Oct 22, 2025 · Backend Development

Why Spring’s Circular Dependency Can Crash Your Service and How to Fix It

A backend admin service failed to start due to a Spring circular‑dependency error where a bean was injected in its raw form before AOP proxy creation, exposing the limits of Spring’s three‑level cache and prompting a detailed analysis of the root cause and practical solutions.

AOPBackend DevelopmentBean Creation
0 likes · 30 min read
Why Spring’s Circular Dependency Can Crash Your Service and How to Fix It
Ray's Galactic Tech
Ray's Galactic Tech
Oct 19, 2025 · Backend Development

How @Configuration Embodies the Open/Closed Principle in Spring Boot

Spring Boot’s @Configuration annotation serves as a practical implementation of the Open/Closed Principle by providing declarative, type‑safe bean definitions, enabling closed‑for‑modification business logic while remaining open for extension through modular configuration, conditional beans, and auto‑configuration mechanisms.

Auto-ConfigurationConfigurationDependency Injection
0 likes · 7 min read
How @Configuration Embodies the Open/Closed Principle in Spring Boot
AndroidPub
AndroidPub
Oct 10, 2025 · Mobile Development

How Koin Annotations 2.2 Makes Migrating from Dagger/Hilt to Koin Seamless

Koin Annotations 2.2 introduces JSR‑330 compatibility, predefined scope archetypes, smart module configuration, and built‑in performance monitoring, enabling Android and Kotlin Multiplatform projects to migrate from Dagger or Hilt to Koin safely, progressively, and with minimal code changes.

AndroidDependency InjectionJSR-330
0 likes · 10 min read
How Koin Annotations 2.2 Makes Migrating from Dagger/Hilt to Koin Seamless
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 6, 2025 · Backend Development

Unlock Full Dependency Injection in Spring Boot 3 with Load‑Time Weaving

This article demonstrates how to extend Spring Boot 3's dependency injection to objects created with the new operator by using AspectJ load‑time weaving, @Configurable, META‑INF/aop.xml configuration, and the required -javaagent, providing step‑by‑step code examples and troubleshooting tips.

AspectJBackend DevelopmentDependency Injection
0 likes · 9 min read
Unlock Full Dependency Injection in Spring Boot 3 with Load‑Time Weaving
Liangxu Linux
Liangxu Linux
Sep 28, 2025 · Fundamentals

How to Structure Embedded Software: Layered Architecture and Decoupling Patterns

This article explains how to design decoupled embedded software by using a layered architecture, event‑driven mechanisms, pipeline‑filter data flows, and dependency injection, providing concrete C code examples and practical guidelines for each technique to improve maintainability and scalability.

C ProgrammingDependency InjectionEmbedded
0 likes · 16 min read
How to Structure Embedded Software: Layered Architecture and Decoupling Patterns
Open Source Tech Hub
Open Source Tech Hub
Sep 28, 2025 · Backend Development

How to Implement Bring Your Own HTTP Client in PHP Using PSR Standards

This article explains the concept of Bring Your Own HTTP Client in PHP, outlines the relevant PSR-7, PSR-17, and PSR-18 standards, shows how php-http/discovery simplifies client selection, and provides concrete SDK code and usage examples for flexible, high‑performance HTTP integration.

Dependency InjectionHTTP ClientPHP
0 likes · 8 min read
How to Implement Bring Your Own HTTP Client in PHP Using PSR Standards
Liangxu Linux
Liangxu Linux
Sep 25, 2025 · Fundamentals

Decoupling Embedded Systems: Layers, Event‑Driven Design, and Dependency Injection

This guide explains how to achieve clean decoupling in embedded software by employing a systematic layered architecture, leveraging event‑driven and pipeline‑filter patterns for data flow, and applying dependency injection, complete with practical C code examples and best‑practice recommendations for resource‑constrained devices.

C ProgrammingDependency InjectionLayered Design
0 likes · 17 min read
Decoupling Embedded Systems: Layers, Event‑Driven Design, and Dependency Injection
JD Tech Talk
JD Tech Talk
Sep 18, 2025 · Fundamentals

Mastering the Strategy Pattern in Java: Real-World Spring Implementation

This article explains the Strategy (Policy) Pattern, illustrates its structure, and demonstrates a practical Spring-based implementation where different message types are processed by distinct strategy services, using an enum to map types to beans for flexible, interchangeable algorithms.

Dependency InjectionSpringStrategy Pattern
0 likes · 4 min read
Mastering the Strategy Pattern in Java: Real-World Spring Implementation
JD Cloud Developers
JD Cloud Developers
Sep 18, 2025 · Fundamentals

Mastering the Strategy Pattern in Spring: Dynamic Message Processing Explained

This article introduces the Strategy design pattern, explains its core concept of interchangeable algorithms, and demonstrates a practical Spring-based implementation that routes various message types to specific services using an enum‑driven bean lookup, enabling flexible updates to Elasticsearch for merchant search and analytics.

Dependency InjectionSpringStrategy Pattern
0 likes · 3 min read
Mastering the Strategy Pattern in Spring: Dynamic Message Processing Explained
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 18, 2025 · Backend Development

Master 11 Spring Boot Bean Registration Techniques for Dynamic Applications

Explore 11 practical Spring Boot bean registration methods—from simple @Component scanning to advanced ImportSelector, FactoryBean, and runtime dynamic registration—detailing code examples, use cases, and configuration steps, enabling developers to choose the optimal approach for flexible, modular applications.

Backend DevelopmentBean RegistrationDependency Injection
0 likes · 11 min read
Master 11 Spring Boot Bean Registration Techniques for Dynamic Applications
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Sep 15, 2025 · Backend Development

Master Spring’s Core: IoC, DI, AOP & Transaction Explained

This article provides a comprehensive overview of the Spring framework, covering its core principles such as Inversion of Control, Dependency Injection, Aspect‑Oriented Programming, and transaction management, while illustrating each concept with diagrams and practical code examples for Java developers.

AOPBackend DevelopmentDependency Injection
0 likes · 7 min read
Master Spring’s Core: IoC, DI, AOP & Transaction Explained
Code Wrench
Code Wrench
Sep 11, 2025 · Fundamentals

Mastering Go Reflection: Principles, Pitfalls, and a Practical DI Container

This article thoroughly explains Go's reflection mechanism, showcases typical scenarios such as function calls, ORM mapping, and dependency injection, highlights common pitfalls and performance concerns, and provides optimization tips along with a concrete lightweight DI container example.

Dependency InjectionGoORM
0 likes · 6 min read
Mastering Go Reflection: Principles, Pitfalls, and a Practical DI Container
AndroidPub
AndroidPub
Sep 5, 2025 · Backend Development

How KoinBoot Transforms Koin into a Full‑Featured Enterprise Framework

Discover how KoinBoot extends the lightweight Koin DI library with configuration management, lifecycle control, automatic module loading, and Gradle integration to create a modular, plug‑and‑play application framework that simplifies enterprise Kotlin development across platforms.

Dependency InjectionKoinKotlin Multiplatform
0 likes · 20 min read
How KoinBoot Transforms Koin into a Full‑Featured Enterprise Framework
php Courses
php Courses
Sep 4, 2025 · Backend Development

Avoid Common Dependency Injection Pitfalls in PHP and Master Best Practices

This article explains why many PHP developers misuse Dependency Injection, outlines typical misconceptions such as equating DI with container usage, over‑reliance on constructors, and ignoring abstractions, and then provides concrete, testable solutions and best‑practice guidelines.

Dependency InjectionPHPdesign patterns
0 likes · 6 min read
Avoid Common Dependency Injection Pitfalls in PHP and Master Best Practices
Code Ape Tech Column
Code Ape Tech Column
Sep 3, 2025 · Backend Development

Building a Flexible Contract Signing Workflow with Chain of Responsibility

This article explains how to design a contract‑signing workflow in Java using the Chain of Responsibility and Strategy patterns, covering the processing steps, project structure, annotation‑driven bean injection, and complete code examples for each component.

Chain of ResponsibilityDependency InjectionStrategy Pattern
0 likes · 16 min read
Building a Flexible Contract Signing Workflow with Chain of Responsibility
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 29, 2025 · Backend Development

Explore 160 Real-World Spring Boot 3 Cases – Free PDF Updated to 130+

This article presents a free, continuously updated collection of 160 practical Spring Boot 3 examples, organized into nine annotation categories with clear explanations and code snippets, allowing developers to master component scanning, bean lifecycle, dependency injection, MVC, configuration, JPA, exception handling, AOP, and testing.

Backend DevelopmentDependency InjectionJava Annotations
0 likes · 20 min read
Explore 160 Real-World Spring Boot 3 Cases – Free PDF Updated to 130+
AndroidPub
AndroidPub
Aug 28, 2025 · Mobile Development

Koin vs Hilt: Which Android DI Framework Wins in 2025?

An in‑depth comparison of the Koin and Hilt dependency‑injection frameworks evaluates adoption trends, design philosophies, learning curves, performance, developer experience, testing, multi‑platform support, and ecosystem integration, helping Android teams decide which solution best fits their project size and requirements.

AndroidDI FrameworksDependency Injection
0 likes · 16 min read
Koin vs Hilt: Which Android DI Framework Wins in 2025?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 12, 2025 · Backend Development

Master Dynamic Bean Switching in Spring Boot 3: 10 Real‑World Solutions

This article presents ten complete solutions for dynamically switching implementations of a Spring Boot interface—ranging from simple @Profile usage to advanced AOP and custom annotation techniques—complete with code examples, configuration snippets, and a free PDF ebook of 155 practical cases.

Dependency InjectionDynamic Bean SwitchingJava
0 likes · 11 min read
Master Dynamic Bean Switching in Spring Boot 3: 10 Real‑World Solutions
AndroidPub
AndroidPub
Aug 11, 2025 · Fundamentals

Unlocking Kotlin’s Context Parameters: From Receivers to Powerful DSLs

This article traces the evolution of Kotlin’s context receivers into context parameters, explains their syntax and how they extend extension functions, and showcases multiple practical scenarios—including multi‑receiver extensions, coroutine integration, dependency injection, DSL construction, and type‑class patterns—while offering best‑practice guidelines and future outlooks.

Context ParametersDependency InjectionExtension Functions
0 likes · 11 min read
Unlocking Kotlin’s Context Parameters: From Receivers to Powerful DSLs
Bilibili Tech
Bilibili Tech
Aug 1, 2025 · Mobile Development

Revamping a Mobile Video Editor: MVVM + UDF Architecture and Redo/Undo Design

This article details the comprehensive redesign of a mobile video‑editing page, covering background challenges, requirement analysis, MVVM + UDF architectural choices, module decomposition, dependency‑injection implementation, and the design of a robust Redo/Undo system to improve maintainability and user experience.

Dependency InjectionMVVMUDF
0 likes · 19 min read
Revamping a Mobile Video Editor: MVVM + UDF Architecture and Redo/Undo Design
macrozheng
macrozheng
Jul 24, 2025 · Backend Development

Master Spring Annotation Development: From XML Beans to Pure Annotations

This article explains how Spring 3.0's pure annotation mode simplifies bean configuration, demonstrates replacing XML with @Component and @Configuration, covers bean scopes, dependency injection techniques like @Autowired, @Qualifier, @Value, and shows seamless integration of Spring with MyBatis for data access.

AnnotationDependency InjectionMyBatis
0 likes · 10 min read
Master Spring Annotation Development: From XML Beans to Pure Annotations
Architect
Architect
Jul 21, 2025 · Backend Development

Do You Really Need Interfaces for Service and DAO Layers in Spring?

While many developers add interfaces to every Service and DAO class, this article argues that with Spring’s dependency injection you can often omit them, examines common reasons for using interfaces, and proposes practical project structures and workflows for both single and multiple implementation scenarios.

Backend DevelopmentDependency InjectionInterface
0 likes · 9 min read
Do You Really Need Interfaces for Service and DAO Layers in Spring?
IT Services Circle
IT Services Circle
Jul 21, 2025 · Backend Development

How Spring Uses a Three‑Level Cache to Resolve Circular Dependencies

This article explains Spring's circular dependency problem, distinguishes when such dependencies are harmless, shows why constructor injection can still fail, and details how Spring's three‑level cache with singleton, early‑singleton, and factory caches resolves setter‑based circular dependencies, including code examples and key source snippets.

Dependency InjectionJavaSpring
0 likes · 10 min read
How Spring Uses a Three‑Level Cache to Resolve Circular Dependencies
Selected Java Interview Questions
Selected Java Interview Questions
Jul 17, 2025 · Backend Development

How to Fix Spring Static Injection NPE: Real-World Demo & Solutions

This article explains why static fields injected with @Autowired in Spring can become null, causing NPEs in production, and presents six practical solutions—including removing static fields, using @PostConstruct, static setters, ApplicationContext, singleton patterns, and @Lazy loading—to ensure reliable static dependency injection.

Dependency InjectionJavaSpring
0 likes · 9 min read
How to Fix Spring Static Injection NPE: Real-World Demo & Solutions
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 9, 2025 · Backend Development

Mastering Spring’s @Autowired for Collections: From Lists to Maps

This article explains how Spring’s @Autowired can inject List, Set, and Map collections, detailing injection mechanisms, code examples, workflow steps, common use cases like plugin systems and filter chains, and advanced tips such as @Qualifier, custom ordering, and handling pitfalls.

AutowiredCollection InjectionDependency Injection
0 likes · 11 min read
Mastering Spring’s @Autowired for Collections: From Lists to Maps
Cognitive Technology Team
Cognitive Technology Team
Jul 8, 2025 · Backend Development

How to Dynamically Autowire Beans in Spring: Two Practical Approaches

This tutorial explains why and how to dynamically change Spring bean implementations at runtime, presenting a real-world region‑service example and demonstrating two solutions—using BeanFactory and injecting a map of implementations—for flexible backend development.

BeanFactoryDependency InjectionDynamic Autowiring
0 likes · 5 min read
How to Dynamically Autowire Beans in Spring: Two Practical Approaches
Cognitive Technology Team
Cognitive Technology Team
Jul 7, 2025 · Backend Development

Master Spring Bean Scopes: Choose the Right Lifecycle for High‑Performance Apps

An in‑depth guide to Spring Bean scopes explains the seven standard scopes—including Singleton, Prototype, Request, Session, Application, Global Session, and WebSocket—detailing their lifecycles, configuration methods, core principles, and best‑practice scenarios to help developers choose the optimal scope for high‑performance, reliable applications.

Backend DevelopmentBean ScopeDependency Injection
0 likes · 12 min read
Master Spring Bean Scopes: Choose the Right Lifecycle for High‑Performance Apps
Architect's Guide
Architect's Guide
Jul 6, 2025 · Backend Development

Mastering Spring Bean Creation: From Simple Instantiation to 3‑Level Caching

This article explains Spring's bean lifecycle in depth, covering the minimal creation steps, the role of BeanFactoryPostProcessor and BeanPostProcessor, how Spring resolves references and circular dependencies, and why a three‑level cache is essential for reliable dependency injection.

Backend DevelopmentBean LifecycleDependency Injection
0 likes · 15 min read
Mastering Spring Bean Creation: From Simple Instantiation to 3‑Level Caching
Java Captain
Java Captain
Jul 4, 2025 · Backend Development

How Does Spring Detect and Resolve Circular Bean Dependencies?

This article explains what circular dependencies are in Spring, how the framework detects them using a three‑level cache during bean creation, and walks through a step‑by‑step example of resolving a setter‑injected circular reference between two beans.

Backend DevelopmentBean LifecycleDependency Injection
0 likes · 6 min read
How Does Spring Detect and Resolve Circular Bean Dependencies?
Java Captain
Java Captain
Jul 4, 2025 · Backend Development

Why Getting Spring Beans in Non‑Spring Classes Causes NullPointerExceptions

This article explains why retrieving Spring beans from classes not managed by Spring can cause NullPointerExceptions and failed autowiring, demonstrates two code examples—using a utility class and @Autowired in a plain class—and recommends registering such classes as Spring components to ensure proper dependency management.

Bean RetrievalDependency InjectionJava
0 likes · 5 min read
Why Getting Spring Beans in Non‑Spring Classes Causes NullPointerExceptions
Xuanwu Backend Tech Stack
Xuanwu Backend Tech Stack
Jul 3, 2025 · Backend Development

When to Use @Autowired vs @Resource in Spring? A Deep Dive

This article explains the differences between Spring's @Autowired and JSR‑250's @Resource annotations, covering their injection strategies, supported features, usage examples, comparison tables, and performance considerations for backend developers.

AutowiredBackend DevelopmentDependency Injection
0 likes · 7 min read
When to Use @Autowired vs @Resource in Spring? A Deep Dive
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 24, 2025 · Backend Development

12 Powerful Ways to Retrieve Beans in Spring Boot 3 – A Practical Guide

This article presents twelve practical techniques for obtaining Spring beans—including @Autowired, @Resource, @Inject, constructor injection, ApplicationContext, BeanFactory, ObjectProvider, @Lookup, BeanFactoryUtils, BeanFactoryAnnotationUtils, custom utilities, and @Value with SpEL—complete with code examples and usage scenarios to help developers choose the most suitable approach.

Bean RetrievalCode examplesDependency Injection
0 likes · 11 min read
12 Powerful Ways to Retrieve Beans in Spring Boot 3 – A Practical Guide
macrozheng
macrozheng
Jun 16, 2025 · Backend Development

Hot‑Deploying User‑Defined Interfaces in Spring Boot: Reflection vs Annotation

This article demonstrates how to design a simple Calculator interface, provide two implementation strategies (annotation‑managed and reflection‑based), and achieve hot deployment of user‑supplied JARs in a Spring Boot application, including loading, registering, and removing beans dynamically.

Dependency InjectionHot DeploymentJava
0 likes · 9 min read
Hot‑Deploying User‑Defined Interfaces in Spring Boot: Reflection vs Annotation
Bilibili Tech
Bilibili Tech
Jun 13, 2025 · Mobile Development

How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS

This article details Bilibili's practical experience with Kotlin Multiplatform (KMP), covering the choice of Bazel as a build system, multi‑language interop, dependency injection, modular export, state‑machine driven single‑direction data flow, and the successful deployment of shared logic and UI across Android, iOS, and HarmonyOS platforms.

BazelCompose UICross‑platform
0 likes · 20 min read
How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS
Java Architect Essentials
Java Architect Essentials
Jun 12, 2025 · Backend Development

Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide

Concept Plugin 2 introduces a lightweight, annotation‑driven plug‑in system for Spring Boot that separates core business logic from device integration code, enabling independent testing, dynamic loading, and easy configuration through a management UI, while supporting various injection patterns, nested dependencies, and Spring features.

Dependency InjectionJavaSpring Boot
0 likes · 10 min read
Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide
php Courses
php Courses
Jun 9, 2025 · Backend Development

Master Advanced Dependency Injection Techniques in Modern PHP

This article explores the core concepts, benefits, and advanced implementations of Dependency Injection in modern PHP, covering constructor, setter, and interface injection, autowiring, contextual and lazy injection, container patterns like factories, decorators, conditional registration, and best practices for performance, testing, and integration with other design patterns.

Backend DevelopmentDependency InjectionPHP
0 likes · 6 min read
Master Advanced Dependency Injection Techniques in Modern PHP
php Courses
php Courses
May 30, 2025 · Backend Development

Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025

This article examines the core design principles, modern best practices, and common hidden pitfalls of PHP interfaces in the 2025 ecosystem, providing concrete code examples and guidance on contract‑first design, single responsibility, interface segregation, dependency injection, versioning, testing, and advanced patterns such as adapters and plugin systems.

Backend DevelopmentDependency InjectionInterfaces
0 likes · 9 min read
Design Principles, Best Practices, and Hidden Pitfalls of PHP Interfaces in 2025
Code Mala Tang
Code Mala Tang
May 27, 2025 · Backend Development

Mastering Database Connections in FastAPI: Best Practices and Code Samples

Learn how to efficiently configure and manage database connections in FastAPI, covering synchronous and asynchronous setups, dependency injection, session handling, and testing strategies, to prevent leaks, boost performance, and ensure scalable, reliable applications.

Connection ManagementDependency InjectionFastAPI
0 likes · 8 min read
Mastering Database Connections in FastAPI: Best Practices and Code Samples
Java Captain
Java Captain
Apr 27, 2025 · Backend Development

Comprehensive Overview of Spring MVC, Bean, Dependency Injection, Scope, and Spring Boot Annotations

This article provides a detailed guide to the most commonly used Spring and Spring Boot annotations—including MVC mapping annotations, bean registration annotations, dependency injection and scope annotations, as well as conditional configuration annotations—explaining their purposes, key attributes, and example usages for Java backend development.

Dependency InjectionJavaSpring
0 likes · 12 min read
Comprehensive Overview of Spring MVC, Bean, Dependency Injection, Scope, and Spring Boot Annotations
Architecture Development Notes
Architecture Development Notes
Apr 26, 2025 · Backend Development

Spring vs Solon: Which Java Backend Framework Wins on Performance and Flexibility?

This article compares Spring and Solon, examining their architectural philosophies, startup speed, memory usage, modular design, dependency injection, configuration management, reactive programming support, ecosystem maturity, and future roadmap, providing concrete benchmark data and practical guidance for choosing the right Java backend framework.

ConfigurationDependency InjectionJava
0 likes · 8 min read
Spring vs Solon: Which Java Backend Framework Wins on Performance and Flexibility?
Code Mala Tang
Code Mala Tang
Apr 24, 2025 · Backend Development

Mastering Dependency Injection in FastAPI: From Basics to Advanced Use

This article explains how FastAPI leverages Dependency Injection to improve code reusability, modularity, and testability, covering basic examples, sub‑dependency handling, database session management with SQLAlchemy, and building a full‑featured user management API with authentication.

Backend DevelopmentDependency InjectionFastAPI
0 likes · 9 min read
Mastering Dependency Injection in FastAPI: From Basics to Advanced Use
Top Architect
Top Architect
Apr 17, 2025 · Backend Development

Plugin Architecture in Java: Implementing Modular Extensions with ServiceLoader, Spring Factories, and Custom Configurations

This article explains how to design and implement a plugin mechanism in Java and Spring Boot, covering the benefits of modular decoupling, common implementation patterns such as ServiceLoader and custom configuration files, and practical code examples for building extensible backend services.

Dependency InjectionJavaServiceLoader
0 likes · 23 min read
Plugin Architecture in Java: Implementing Modular Extensions with ServiceLoader, Spring Factories, and Custom Configurations
php Courses
php Courses
Apr 10, 2025 · Backend Development

Common Design Patterns in PHP Web Service Development

This article introduces essential design patterns for PHP web service development, such as Factory, Singleton, Observer, Strategy, and Dependency Injection, explains their implementation with code examples, discusses their benefits for code reuse, maintainability, and scalability, and offers guidance on selecting appropriate patterns in modern PHP frameworks.

Dependency InjectionFactory PatternObserver
0 likes · 8 min read
Common Design Patterns in PHP Web Service Development
Code Mala Tang
Code Mala Tang
Mar 19, 2025 · Backend Development

Applying SOLID Principles and Design Patterns in FastAPI for Clean Architecture

This article explains how to apply SOLID principles and common design patterns such as DAO, service layer, and dependency inversion to FastAPI, demonstrating code examples that separate responsibilities, improve testability, and create a clean, maintainable backend architecture.

Backend DevelopmentDependency InjectionFastAPI
0 likes · 13 min read
Applying SOLID Principles and Design Patterns in FastAPI for Clean Architecture
Architecture Digest
Architecture Digest
Mar 17, 2025 · Backend Development

Dynamic Service Provider Switching with spring-smart-di and AutowiredProxySPI

This article explains how to dynamically switch between multiple service providers in a Spring backend by configuring identifiers, using spring-smart-di's AutowiredProxySPI and related annotations, and provides step‑by‑step code examples for seamless, runtime‑configurable dependency injection.

Dependency InjectionJavaSpring
0 likes · 9 min read
Dynamic Service Provider Switching with spring-smart-di and AutowiredProxySPI
Architecture Digest
Architecture Digest
Mar 10, 2025 · Backend Development

Implementing a Plugin Architecture in Java and Spring Boot Using SPI and Spring Factories

This article explains how to design and implement a flexible plugin mechanism for Java applications, covering the benefits of decoupling, common implementation strategies such as ServiceLoader (SPI), custom configuration loading, and Spring Boot integration via spring.factories, with complete code examples and a real‑world case study.

Dependency InjectionJavaPlugin
0 likes · 19 min read
Implementing a Plugin Architecture in Java and Spring Boot Using SPI and Spring Factories
Code Ape Tech Column
Code Ape Tech Column
Mar 10, 2025 · Backend Development

Dynamic Service Provider Switching with spring-smart-di and AutowiredProxySPI

This article explains how to dynamically switch between multiple service providers, such as SMS vendors, in a Spring‑based backend by using spring‑smart‑di's @AutowiredProxySPI and related annotations, covering configuration, Maven dependency, enabling the feature, and custom proxy implementations.

Dependency InjectionJavaSpring
0 likes · 9 min read
Dynamic Service Provider Switching with spring-smart-di and AutowiredProxySPI
JD Tech Talk
JD Tech Talk
Mar 7, 2025 · Fundamentals

Understanding Java Service Provider Interface (SPI): Introduction, Example, and Implementation Details

This article introduces Java's Service Provider Interface (SPI), demonstrates a step‑by‑step example with multiple Maven modules, explains how to create interface and implementation classes, configure META‑INF/services files, and delves into the ServiceLoader internals that enable runtime discovery and instantiation of providers.

Dependency InjectionJavaSPI
0 likes · 9 min read
Understanding Java Service Provider Interface (SPI): Introduction, Example, and Implementation Details