Tagged articles
33 articles
Page 1 of 1
Java One
Java One
Dec 22, 2025 · Backend Development

Injecting Third‑Party Classes in Spring Boot with @Configuration and @Bean

This tutorial explains how to register and inject a third‑party implementation like SwimCoach into a Spring Boot application using a @Configuration class and @Bean methods, covering bean creation, custom IDs, qualifier usage, and practical scenarios such as integrating AWS S3 clients.

awsbeanconfiguration
0 likes · 5 min read
Injecting Third‑Party Classes in Spring Boot with @Configuration and @Bean
Java One
Java One
Dec 7, 2025 · Backend Development

Resolving Multiple Bean Implementations in Spring Boot with @Qualifier and @Primary

This tutorial explains why Spring Boot fails when several beans implement the same interface, and demonstrates how to use @Qualifier to select a specific bean or @Primary to set a default, including code examples, error messages, and best‑practice recommendations.

backend-developmentdependency-injectionprimary
0 likes · 7 min read
Resolving Multiple Bean Implementations in Spring Boot with @Qualifier and @Primary
Cognitive Technology Team
Cognitive Technology Team
Jul 8, 2025 · Backend Development

How to Register Spring Beans at Runtime: A Step‑by‑Step Guide

This tutorial explains multiple ways to register Spring beans dynamically at runtime, covering BeanDefinitionRegistryPostProcessor implementation, programmatic bean creation with BeanDefinitionBuilder, ApplicationContextInitializer usage, BeanFactory registration, and direct BeanDefinitionRegistry manipulation, complete with code examples and configuration details.

Javabackendbean
0 likes · 7 min read
How to Register Spring Beans at Runtime: A Step‑by‑Step Guide
Go Development Architecture Practice
Go Development Architecture Practice
May 20, 2025 · Backend Development

Mastering Dependency Injection in Go with Uber’s Dig

This article explains why and when to use dependency injection in Go, introduces the most popular DI libraries, and provides step‑by‑step examples of Dig’s core features such as container creation, providing and invoking dependencies, parameter and result objects, optional and named dependencies, groups, and a complete multi‑service HTTP demo.

Librarybackenddependency-injection
0 likes · 11 min read
Mastering Dependency Injection in Go with Uber’s Dig
Go Development Architecture Practice
Go Development Architecture Practice
Jan 17, 2025 · Backend Development

Mastering Go Backend: Project Structure, Error Handling, and Observability Best Practices

This article explores practical Go backend development techniques, covering project organization, package naming, internal packages, init usage, layer separation (controller, service, dao), dependency injection, global variable pitfalls, observability with logging, tracing and monitoring, comprehensive error handling, and DAO layer automation.

Observabilitybackenddependency-injection
0 likes · 23 min read
Mastering Go Backend: Project Structure, Error Handling, and Observability Best Practices
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 25, 2024 · Mobile Development

Understanding Flutter State Management and Provider: Concepts, Built‑in Options, and Practical Usage

This article explains the concept of state in Flutter, distinguishes local and global state, reviews built‑in state‑handling mechanisms such as setState and InheritedWidget, outlines criteria for selecting a state‑management library, and provides a step‑by‑step guide with code examples for using the Provider package, including advanced features like MultiProvider, FutureProvider, Selector, and the underlying implementation details of InheritedProvider.

DARTFlutterProvider
0 likes · 22 min read
Understanding Flutter State Management and Provider: Concepts, Built‑in Options, and Practical Usage
Top Architect
Top Architect
Apr 25, 2023 · Backend Development

Understanding and Resolving Circular Dependencies in Spring Boot

This article explains what circular dependencies are in Spring Boot, why they cause startup failures from version 2.6 onward, and presents several practical solutions—including constructor injection, setter injection, @Lazy, @Autowired(required=false), @DependsOn, and interface segregation—accompanied by code examples.

circular-dependencydependency-injectionspring-boot
0 likes · 10 min read
Understanding and Resolving Circular Dependencies in Spring Boot
Sanyou's Java Diary
Sanyou's Java Diary
Jul 25, 2022 · Backend Development

Unlock Spring’s Hidden Extension Points: From FactoryBean to Custom Namespaces

Explore the core extension mechanisms of Spring, including FactoryBean, @Import, BeanPostProcessor, BeanFactoryPostProcessor, SPI, SpringBoot startup hooks, event handling, and custom XML namespaces, with detailed code demos and practical examples that reveal how to integrate and extend Spring in real-world applications.

Extension PointsJavabackend
0 likes · 40 min read
Unlock Spring’s Hidden Extension Points: From FactoryBean to Custom Namespaces
Java Backend Technology
Java Backend Technology
Jun 15, 2022 · Backend Development

Master Spring Boot Annotations: From @RequestMapping to @SpringBootApplication

This comprehensive guide explains the most commonly used Spring Boot annotations—including MVC mapping, bean definitions, dependency injection, scope management, container configuration, and bootstrapping—providing clear examples and visual diagrams to help developers write cleaner, more efficient Java code.

annotationsdependency-injectionrest-controller
0 likes · 16 min read
Master Spring Boot Annotations: From @RequestMapping to @SpringBootApplication
Sanyou's Java Diary
Sanyou's Java Diary
Feb 8, 2022 · Backend Development

Unveiling Dubbo SPI: How Extensions Are Loaded, Adapted, and Wrapped

This article continues the deep dive into Dubbo's SPI mechanism, explaining how implementation classes are constructed, how adaptive extensions are generated, how automatic activation works, and why Dubbo wraps objects, providing a comprehensive view of the framework's extensibility features.

ExtensionLoaderJavaadaptive-extension
0 likes · 14 min read
Unveiling Dubbo SPI: How Extensions Are Loaded, Adapted, and Wrapped
Java Architect Essentials
Java Architect Essentials
Nov 30, 2021 · Backend Development

How Spring Solves Circular Dependencies and the Underlying Essence

This article explains Spring's three‑level cache mechanism for breaking circular dependencies in singleton beans, demonstrates a simplified implementation with Java code, draws an analogy to the classic Two‑Sum algorithm, and highlights the core idea behind dependency injection.

Two Sumcircular-dependencydependency-injection
0 likes · 9 min read
How Spring Solves Circular Dependencies and the Underlying Essence
Programmer DD
Programmer DD
Aug 21, 2021 · Backend Development

Mastering Java Constructors and Design Patterns: From Implicit to Singleton

This article provides a comprehensive guide to advanced Java concepts, covering implicit, no‑arg, and argument constructors, initialization blocks, static initialization, default value guarantees, visibility rules, garbage collection, finalizers, and common construction patterns such as singleton, helper, factory, and dependency injection, helping developers deepen their object‑oriented mastery.

ConstructorsFactoryadvanced-java
0 likes · 16 min read
Mastering Java Constructors and Design Patterns: From Implicit to Singleton
Architecture Digest
Architecture Digest
Jun 11, 2021 · Backend Development

Understanding Spring Boot’s @SpringBootApplication and Auto‑Configuration Mechanism

This article explains how Spring Boot’s @SpringBootApplication annotation combines several meta‑annotations, how auto‑configuration is loaded from META‑INF/spring.factories, and how the framework creates and refreshes the application context, including the embedded Tomcat server and custom starter creation.

Starterauto-configurationdependency-injection
0 likes · 13 min read
Understanding Spring Boot’s @SpringBootApplication and Auto‑Configuration Mechanism
Programmer DD
Programmer DD
May 11, 2021 · Fundamentals

Mastering Java Constructors and Design Patterns: From Implicit to Singleton

This article provides a comprehensive guide to Java object creation, covering implicit, no‑argument, and argument constructors, initialization blocks, static initialization, default value guarantees, visibility rules, garbage collection, finalizers, and common construction patterns such as singleton, helper, factory, and dependency injection.

ConstructorsInitializationSingleton
0 likes · 17 min read
Mastering Java Constructors and Design Patterns: From Implicit to Singleton
Java Captain
Java Captain
Jan 27, 2021 · Backend Development

Why Field Injection Is Not Recommended in Spring and Preferred Alternatives

This article explains why Spring’s field injection is discouraged, outlines constructor‑based, setter‑based, and field‑based injection methods with code examples, discusses the drawbacks of field injection such as hidden dependencies and poor testability, and recommends using constructor injection for required beans and setter injection for optional ones.

Constructor InjectionField InjectionSetter Injection
0 likes · 6 min read
Why Field Injection Is Not Recommended in Spring and Preferred Alternatives
IT Xianyu
IT Xianyu
Dec 28, 2020 · Backend Development

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

This article provides a detailed summary of Spring and Spring Boot's bean lifecycle, enumerating all major extension interfaces—including ApplicationContextInitializer, BeanDefinitionRegistryPostProcessor, BeanFactoryPostProcessor, InstantiationAwareBeanPostProcessor, SmartInstantiationAwareBeanPostProcessor, various Aware interfaces, FactoryBean, CommandLineRunner, and ApplicationListener—along with usage scenarios and code examples, enabling developers to customize bean initialization and container behavior.

Extension PointsSpringBootapplication-context
0 likes · 19 min read
Comprehensive Overview of Spring & Spring Boot Extension Points and Bean Lifecycle
IT Xianyu
IT Xianyu
Nov 26, 2020 · Backend Development

Spring Interview Questions and Answers: IoC, AOP, Bean Lifecycle, Circular Dependency, Transactions, Annotations, MVC Flow and Thread Concurrency

This article provides comprehensive explanations of Spring framework concepts—including IoC/AOP principles, bean lifecycle, circular dependency resolution, transaction pitfalls, annotation configuration, MVC processing flow, advice types, and thread‑safety mechanisms—along with illustrative code snippets for interview preparation.

AOPbean-lifecycledependency-injection
0 likes · 12 min read
Spring Interview Questions and Answers: IoC, AOP, Bean Lifecycle, Circular Dependency, Transactions, Annotations, MVC Flow and Thread Concurrency
php Courses
php Courses
Nov 9, 2020 · Backend Development

In‑Depth Analysis of ThinkPHP Routing Mechanism and Facade Integration

This article provides a comprehensive walkthrough of ThinkPHP's routing system, explaining why routes are used, how the route initialization process works, how annotation routes and facades are resolved, and detailing the preprocessing of route rules, variable handling, and container‑based dependency injection.

ContainerFacadedependency-injection
0 likes · 16 min read
In‑Depth Analysis of ThinkPHP Routing Mechanism and Facade Integration
php Courses
php Courses
Nov 6, 2020 · Backend Development

Understanding and Implementing the Facade Pattern in ThinkPHP 5.1

This article explains the Facade feature introduced in ThinkPHP 5.1, demonstrates how to use it for static‑style method calls, shows step‑by‑step code examples, discusses the underlying __callStatic and createFacade mechanisms, and provides best‑practice recommendations for managing multiple facades in complex projects.

Facadedependency-injectiondesign pattern
0 likes · 11 min read
Understanding and Implementing the Facade Pattern in ThinkPHP 5.1
Architecture Digest
Architecture Digest
Jul 18, 2020 · Backend Development

Understanding How Spring Handles Circular Dependencies and Its Core Principle

This article explains Spring's three‑level cache mechanism for resolving circular dependencies in singleton beans, demonstrates a simplified implementation with Java code, draws an analogy to the classic two‑sum algorithm, and highlights the essential idea behind circular dependency handling.

circular-dependencydependency-injectiondesign pattern
0 likes · 9 min read
Understanding How Spring Handles Circular Dependencies and Its Core Principle
Java Backend Technology
Java Backend Technology
Nov 3, 2019 · Backend Development

Why Does Spring’s Circular Dependency Fail? Uncovering the Hidden Pitfalls

This article explains the atypical Spring circular‑dependency problem, distinguishes strong and weak dependencies, shows how @Configuration classes turn weak dependencies into strong ones, analyzes bean‑initialisation order, and offers a concrete rule to avoid unresolvable circular references.

backend-developmentcircular-dependencydependency-injection
0 likes · 13 min read
Why Does Spring’s Circular Dependency Fail? Uncovering the Hidden Pitfalls
Programmer DD
Programmer DD
Dec 3, 2018 · Backend Development

Master Spring Core Annotations: @Autowired, @Bean, @Qualifier, @Value and More

This article provides a comprehensive guide to Spring's core annotations—including @Autowired, @Bean, @Qualifier, @Required, @Value, @DependsOn, @Lazy, @Lookup, @Primary, @Scope, @Profile, @Import, @ImportResource, @PropertySource and @PropertySources—explaining their purpose, usage patterns, and code examples for constructor, setter, and field injection in Java applications.

beandependency-injectionspring
0 likes · 10 min read
Master Spring Core Annotations: @Autowired, @Bean, @Qualifier, @Value and More
Python Programming Learning Circle
Python Programming Learning Circle
Jul 26, 2018 · Backend Development

Top Laravel & PHP Interview Questions Every Developer Should Master

This article compiles essential Laravel and PHP interview questions—covering PHP7 new features, Laravel service providers, IoC container, Facades, caching with Redis vs Memcached, database indexing, high‑concurrency strategies, and many other topics—providing concise answers and references for developers preparing for technical interviews.

Interview Questionsbackend-developmentdependency-injection
0 likes · 7 min read
Top Laravel & PHP Interview Questions Every Developer Should Master
Java Captain
Java Captain
Feb 23, 2018 · Backend Development

Spring Framework IoC and Dependency Injection: Configuration, Bean Management, and Annotation‑Based Development

This article introduces the lightweight Spring framework, explains the concepts of IoC and AOP, demonstrates how to configure beans using XML and annotations, and provides detailed code examples for object creation, property injection, complex type injection, and annotation‑driven bean management in Java.

beandependency-injection
0 likes · 17 min read
Spring Framework IoC and Dependency Injection: Configuration, Bean Management, and Annotation‑Based Development