Tagged articles

dependency injection

526 articles · Page 1 of 6
Architect
Architect
Aug 15, 2026 · Backend Development

How Cordis Handles Plugin Cleanup: Comparing DSH and Pi Approaches

The article analyzes how Cordis manages plugin lifecycle issues—preventing "ghost" states after removal—by contrasting the Pi model, which delegates cleanup to extensions, with the DSH model that records cross‑plugin relationships in the runtime, detailing the mechanisms, code paths, and trade‑offs of each.

CordisDSHPi
0 likes · 17 min read
How Cordis Handles Plugin Cleanup: Comparing DSH and Pi Approaches
o-ai.tech
o-ai.tech
Jul 16, 2026 · Backend Development

Designing a Unified, Type‑Safe, Extensible Tool System for AI Agents

This document details a comprehensive architecture for an AI‑agent tool system that unifies registration, discovery, and invocation of dozens of tools, enforces strong type safety, supports runtime dynamic registration, and provides efficient streaming execution with a layered design and dependency‑injection container.

AI agentsTool Systemarchitecture design
0 likes · 32 min read
Designing a Unified, Type‑Safe, Extensible Tool System for AI Agents
Coder Trainee
Coder Trainee
Jul 14, 2026 · Backend Development

Top 10 Must‑Know Spring Interview Questions for Java Developers

This article walks through the ten most frequently asked Spring interview topics—including IoC/DI concepts, bean lifecycle, AOP mechanics, circular‑dependency resolution, @Transactional behavior, Spring Boot startup steps, auto‑configuration, @Autowired vs @Resource, bean scopes, and the differences between servlet filters and Spring interceptors—providing concrete code examples and key points that can earn interviewers' extra credit.

AOPBean ScopeIoC
0 likes · 12 min read
Top 10 Must‑Know Spring Interview Questions for Java Developers
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 codingCLIHarness Engineering
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.

AOPBeanPostProcessorDynamic Proxy
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.

ApplicationContextBeanFactoryEager Loading
0 likes · 9 min read
BeanFactory vs ApplicationContext: The Real Differences You Must Know
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.

Gocompositiondependency injection
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 InjectionField InjectionLombok
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.

SPISpring Bootdependency injection
0 likes · 22 min read
Why Spring Boot Plugin Development Is a Game‑Changer
samdeepthink
samdeepthink
Jun 4, 2026 · Backend Development

Design and Implementation of an Extension‑Point Mechanism for SaaS Multi‑Tenant Business Differentiation

The article explains how an Extension‑Point mechanism can cleanly isolate tenant‑specific logic in SaaS systems by defining variation interfaces, providing per‑tenant implementations annotated with @Extension, and routing calls at runtime using hierarchical bizCode matching, avoiding tangled if‑else or inheritance explosion.

Design PatternExtension PointSaaS
0 likes · 11 min read
Design and Implementation of an Extension‑Point Mechanism for SaaS Multi‑Tenant Business Differentiation
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.

Godependency injectionlint
0 likes · 11 min read
From a Log Key Mistake to Safer Go slog: Lessons and Practical Tricks
samdeepthink
samdeepthink
May 22, 2026 · Backend Development

How to Answer Bean Thread‑Safety Questions from an Architecture‑Responsibility Perspective

The article breaks down Bean thread‑safety into container‑level creation safety and business‑level usage safety, explains Spring's four concurrency strategies, details the implementation of Singleton, Prototype, Request and Session scopes, compares them with other DI frameworks, and argues why Spring's division of responsibilities is appropriate.

BeanScopeSpring
0 likes · 14 min read
How to Answer Bean Thread‑Safety Questions from an Architecture‑Responsibility Perspective
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.

Bean LifecycleConfigurationDebugging
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 DesignException Handling
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 AgentPlugin architecturePython
0 likes · 26 min read
Balancing Core Stability and Extensibility: Design and Implementation of pi Agent’s Extension System
Tech Ocean
Tech Ocean
Apr 16, 2026 · Backend Development

FastAPI Day 7: Implementing Clear JWT Authentication with Dependency Injection

This tutorial walks through building a full registration and login system in FastAPI, covering bcrypt password hashing, JWT token creation with expiration, dependency-injected authentication helpers, protected endpoints, and a suite of passing tests, demonstrating a clear and practical approach to backend authentication.

JWTPythonauthentication
0 likes · 5 min read
FastAPI Day 7: Implementing Clear JWT Authentication with Dependency Injection
Tech Ocean
Tech Ocean
Apr 16, 2026 · Backend Development

Eliminate Repeated Auth and Pagination Code with FastAPI Dependency Injection

This article shows how FastAPI's dependency injection can centralize authentication, permission checks, database connection lifecycles, and pagination logic, removing duplicated code across endpoints by defining reusable dependencies, sub‑dependencies, and yield‑based resources, with concrete code examples and test results.

Pythonauthenticationbackend
0 likes · 5 min read
Eliminate Repeated Auth and Pagination Code with FastAPI Dependency Injection
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 FrameworksHilt
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.

ApplicationContextBeanFactoryIoC
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 LifecycleBeanPostProcessorDisposableBean
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.

SPIServiceLoaderSpring
0 likes · 8 min read
Mastering Java and Spring SPI: From Basics to Advanced Implementation
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.

AutowiredResourceSpring Boot
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.

Backend ArchitectureDesign PatternsSpring 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 PatternDesign PatternsPlugin 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 integrationHelidonLangChain4j
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.

AutowiredResourceSpring Boot
0 likes · 4 min read
What’s the Difference Between @Autowired and @Resource in Spring Boot?
Java Tech Enthusiast
Java Tech Enthusiast
Jan 1, 2026 · Backend Development

Simplify Spring Service Calls with ServiceManager: No @Autowired, Unified Logging & Error Handling

This tutorial shows how to eliminate repetitive @Autowired injections, logging, and try‑catch blocks in Spring controllers by using a custom ServiceManager component that leverages Java 8 Lambda expressions to locate services, cache metadata, and execute methods with unified response handling.

Exception HandlingLambdaServiceManager
0 likes · 12 min read
Simplify Spring Service Calls with ServiceManager: No @Autowired, Unified Logging & Error Handling
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.

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

GoGoogle WireManual DI
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.

AOPCircular DependencySpring
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.

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

Plugin architectureSPISpring Boot
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.

AutowiredConstructor InjectionResource
0 likes · 9 min read
Why @Autowired Is Discouraged and When to Prefer @Resource or Constructor Injection
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 OptimizationModular ArchitectureSwift 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.

AOPBean CreationCircular Dependency
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.

ConfigurationOpen-Closed PrincipleSpring Boot
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.

AndroidJSR-330Koin
0 likes · 10 min read
How Koin Annotations 2.2 Makes Migrating from Dagger/Hilt to Koin Seamless
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.

HTTP clientPHPPSR-18
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 programmingDesign Patternsdependency injection
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.

Design PatternsSpringStrategy 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.

Design PatternsSpringStrategy 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.

Bean RegistrationSpring Bootbackend development
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.

AOPSpringTransaction Management
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.

GoORMbest practices
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.

KoinKotlin MultiplatformLifecycle
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.

Design PatternsPHPdependency injection
0 likes · 6 min read
Avoid Common Dependency Injection Pitfalls in PHP and Master Best Practices
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.

Java AnnotationsSpring Bootbackend development
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 FrameworksHilt
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.

Dynamic Bean SwitchingSpring Bootdependency injection
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 ParametersExtension FunctionsKotlin
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.

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

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

Service LayerSpringbackend development
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.

Circular DependencySpringThree-level Cache
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.

SpringSpring BootStatic Injection
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 InjectionSpring
0 likes · 11 min read
Mastering Spring’s @Autowired for Collections: From Lists to Maps
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.

Bean ScopeSpringbackend development
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.

Bean LifecycleSpringThree-level Cache
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.

Bean LifecycleCircular DependencySpring
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 RetrievalSpringSpring Boot
0 likes · 5 min read
Why Getting Spring Beans in Non‑Spring Classes Causes NullPointerExceptions
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 RetrievalSpring Bootcode examples
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.

Hot DeploymentSpring Bootdependency injection
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.

Modular DesignPlugin architectureSpring 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.

Design PatternsPHPbackend development
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.

Design PrinciplesPHPbackend development
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 ManagementDatabaseSQLAlchemy
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.

SpringSpring Bootannotations
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.

ConfigurationSolondependency injection
0 likes · 8 min read
Spring vs Solon: Which Java Backend Framework Wins on Performance and Flexibility?