Tag

Bean Configuration

1 views collected around this technical thread.

DaTaobao Tech
DaTaobao Tech
Jul 22, 2024 · Backend Development

Spring Bean Injection Issues and Dependency Injection Priorities

In a project with two applications, a Tair bean defined via JavaConfig works in one app but fails in the other because Spring’s injection rules prioritize type over name, causing ambiguity; using explicit bean naming with XML, adding @Qualifier, or switching to @Resource resolves the issue.

Bean ConfigurationJavaannotations
0 likes · 12 min read
Spring Bean Injection Issues and Dependency Injection Priorities
Java Captain
Java Captain
Oct 7, 2018 · Backend Development

A Comprehensive Overview of Spring Framework Concepts and Practices

This article provides a systematic summary of Spring's core concepts—including IoC, AOP, bean configuration via XML and annotations, dependency injection mechanisms, transaction management, and web integration—offering Java developers a clear guide to effectively using the framework in real-world projects.

Bean ConfigurationIoCJava
0 likes · 9 min read
A Comprehensive Overview of Spring Framework Concepts and Practices
Qunar Tech Salon
Qunar Tech Salon
Jan 31, 2016 · Backend Development

Understanding Dependency Injection in Spring: Concepts, Configuration Methods, and Code Samples

This article explains the fundamentals of dependency and dependency injection in Spring, compares class relationships such as inheritance, association, aggregation, and composition, and demonstrates constructor, static‑factory, instance‑factory, setter, constant, and ID reference injection with detailed XML configurations and Java code examples.

Bean ConfigurationConstructor InjectionIoC
0 likes · 18 min read
Understanding Dependency Injection in Spring: Concepts, Configuration Methods, and Code Samples