Tag

dependency injection

0 views collected around this technical thread.

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 DeploymentJavaReflection
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 UICoroutine
0 likes · 20 min read
How Bilibili Scaled Kotlin Multiplatform Across Android, iOS, and HarmonyOS
php中文网 Courses
php中文网 Courses
Jun 13, 2025 · Backend Development

How to Transform Legacy PHP Code into a Clean, Testable Architecture

Legacy PHP applications often suffer from spaghetti code, global state abuse, mixed concerns, and lack of tests; this guide outlines a step‑by‑step refactoring strategy—adding a testing safety net, introducing dependency injection, separating concerns with MVC/DDD, adopting repository patterns, and leveraging modern tools like Composer and PHPStan—to evolve them into maintainable, testable, and scalable backend systems.

DDDPHPbackend development
0 likes · 6 min read
How to Transform Legacy PHP Code into a Clean, Testable Architecture
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.

JavaModular DesignPlugin Architecture
0 likes · 10 min read
Simplify Spring Boot Extensions with Concept Plugin 2: A Plug‑in Guide
Java Architect Essentials
Java Architect Essentials
Jun 10, 2025 · Backend Development

Master Spring Boot Annotations: From @RequestMapping to @Conditional

This comprehensive guide explains the most common Spring Boot annotations—including request mapping, bean definitions, dependency injection, scopes, and auto‑configuration—providing clear examples and usage tips for Java backend developers.

AnnotationsJavaSpring Boot
0 likes · 15 min read
Master Spring Boot Annotations: From @RequestMapping to @Conditional
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.

PHPbackend developmentdependency injection
0 likes · 6 min read
Master Advanced Dependency Injection Techniques in Modern PHP
Cognitive Technology Team
Cognitive Technology Team
Jun 5, 2025 · Backend Development

Creating a Custom Spring Boot Starter: Overview, Auto‑Configuration, and Usage

This tutorial explains how to build a custom Spring Boot starter by detailing the auto‑configuration mechanism, loading custom properties, creating the starter and its pom files, and demonstrating its use in a sample application to simplify configuration and bean creation.

Auto‑ConfigurationCustom StarterJava
0 likes · 10 min read
Creating a Custom Spring Boot Starter: Overview, Auto‑Configuration, and Usage
Big Data Technology Tribe
Big Data Technology Tribe
Jun 5, 2025 · Backend Development

Boost Java Code Quality: Essential Best Practices Every Developer Should Follow

This article outlines essential Java coding habits—including unit testing with TDD, using Optional to avoid nulls, preferring StringBuilder, proper exception handling, composition over inheritance, Streams API, try‑with‑resources, dependency injection, naming conventions, and design patterns—to dramatically improve code readability, performance, and maintainability.

Javabest practicescode quality
0 likes · 7 min read
Boost Java Code Quality: Essential Best Practices Every Developer Should Follow
Cognitive Technology Team
Cognitive Technology Team
Jun 1, 2025 · Backend Development

Injecting Values into Static Fields in Spring: Techniques and Examples

This tutorial explains why Spring cannot inject @Value directly into static fields and presents three practical solutions—setter injection, constructor injection, and @PostConstruct initialization—along with code examples and a test case to verify successful static value injection.

JavaSpringStatic Field
0 likes · 7 min read
Injecting Values into Static Fields in Spring: Techniques and Examples
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.

PHPbackend developmentbest practices
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.

AsyncConnection ManagementFastAPI
0 likes · 8 min read
Mastering Database Connections in FastAPI: Best Practices and Code Samples
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 17, 2025 · Backend Development

Mastering JSR‑330 in Spring Boot 3: Real‑World Dependency Injection Cases

Explore how to leverage JSR‑330 standard annotations such as @Inject, @Named, and @ManagedBean in Spring Boot 3.4.2, with practical code examples, dependency setup, bean naming, optional injection, and a comparison of their limitations versus native Spring annotations.

JSR-330JavaSpring Boot
0 likes · 8 min read
Mastering JSR‑330 in Spring Boot 3: Real‑World Dependency Injection Cases
php中文网 Courses
php中文网 Courses
May 14, 2025 · Backend Development

Why Static Methods Should Be Avoided in PHP and Better Alternatives

The article explains that overusing static methods in PHP violates core OOP principles, hampers testability, creates global state, and reduces extensibility, while outlining appropriate scenarios for static usage and recommending alternatives such as dependency injection, service containers, and cautious singleton patterns.

OOPPHPdependency injection
0 likes · 6 min read
Why Static Methods Should Be Avoided in PHP and Better Alternatives
Code Mala Tang
Code Mala Tang
May 1, 2025 · Backend Development

Master Advanced FastAPI Routing: Modular APIs, Versioning, and RBAC

This tutorial explains how to build scalable, maintainable FastAPI APIs by modularizing routers, implementing path‑based version control, centralizing dependency injection, applying role‑based access control, using custom middleware, and nesting routers for complex applications.

API designFastAPIRBAC
0 likes · 10 min read
Master Advanced FastAPI Routing: Modular APIs, Versioning, and RBAC
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.

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

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

FastAPIPythonWeb API
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.

JavaModular DesignPlugin Architecture
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.

Factory PatternObserverPHP
0 likes · 8 min read
Common Design Patterns in PHP Web Service Development