---
title: "#bean articles | Hashnode"
description: "Explore 27 articles tagged #bean on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/bean"
---

Tag

# #bean

27 posts · 0 followers

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [May 5](https://hashnode.com/posts/methods-to-move-cross-cutting-logic-out-of-controllers-without-building-a-mystery-box/69f9b1a2608b1f76d5a51ca6)

### [Methods to Move Cross-Cutting Logic Out of Controllers Without Building a Mystery Box](https://tuanhnet.hashnode.dev/methods-to-move-cross-cutting-logic-out-of-controllers-without-building-a-mystery-box?utm_source=hashnode&utm_medium=feed)

Practical, expert patterns for extracting logging, validation, security, metrics, and transaction concerns out of Spring controllers while preserving clarity, testability, and predictable performance—no opaque "magic" layers, only explicit, maint...

11 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/methods-to-move-cross-cutting-logic-out-of-controllers-without-building-a-mystery-box?utm_source=hashnode&utm_medium=feed)

[Nandini Karnakota](https://hashnode.com/@nandini1) · [Apr 29](https://hashnode.com/posts/spring-boot-deep-dive-beans-lifecycle-dependency-injection/69f22ac46e0124c05e2d185a)

### [Spring Boot Deep Dive: Beans, Lifecycle & Dependency Injection](https://springbootbynandini.hashnode.dev/spring-boot-deep-dive-beans-lifecycle-dependency-injection?utm_source=hashnode&utm_medium=feed)

Master Sprung Boot core concepts - beans, lifecycle and dependency injection with clear explanations, examples, and best practices.

12 min read · [springbootbynandini.hashnode.dev](https://springbootbynandini.hashnode.dev/spring-boot-deep-dive-beans-lifecycle-dependency-injection?utm_source=hashnode&utm_medium=feed)

[Abheeshta P](https://hashnode.com/@abheeshta) · [Dec 25, 2025](https://hashnode.com/posts/java-series-13-introduction-to-spring-framework/694d237d3251c024a82ae41d)

### [Java Series #13: Introduction to Spring Framework](https://abheeshta-java.hashnode.dev/java-series-13-introduction-to-spring-framework?utm_source=hashnode&utm_medium=feed)

Dependency Injection & Inversion of Control in Spring – A Clear, Practical Guide

4 min read · [abheeshta-java.hashnode.dev](https://abheeshta-java.hashnode.dev/java-series-13-introduction-to-spring-framework?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 12, 2025](https://hashnode.com/posts/techniques-to-manage-global-variables-in-spring-boot-without-breaking-thread-safety/693bd9a2ccc4059991d92fb9)

### [Techniques to Manage Global Variables in Spring Boot Without Breaking Thread-Safety](https://tuanhnet.hashnode.dev/techniques-to-manage-global-variables-in-spring-boot-without-breaking-thread-safety?utm_source=hashnode&utm_medium=feed)

At first glance, global variables sound convenient — a single place to store data that can be accessed from anywhere in your application. It feels like keeping a sticky note on your monitor with all the values you need. But in a multi-threaded en...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-to-manage-global-variables-in-spring-boot-without-breaking-thread-safety?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 5, 2025](https://hashnode.com/posts/how-spring-uses-dynamic-proxy-to-create-repository-interfaces/69329f293b6e7565c48b6db6)

### [How Spring Uses Dynamic Proxy to Create Repository Interfaces](https://tuanhnet.hashnode.dev/how-spring-uses-dynamic-proxy-to-create-repository-interfaces?utm_source=hashnode&utm_medium=feed)

When developers define an interface like UserRepository extends JpaRepository, something fascinating happens under the hood: Spring creates a real implementation of that interface — without you writing a single line of code. No implements, no SQL...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/how-spring-uses-dynamic-proxy-to-create-repository-interfaces?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 3, 2025](https://hashnode.com/posts/techniques-spring-uses-to-create-beans-from-beansxml-the-hidden-xml-parsing-journey-revealed/692ffc2165418ab93b550d72)

### [Techniques Spring Uses to Create Beans from beans.xml — The Hidden XML Parsing Journey Revealed](https://tuanhnet.hashnode.dev/techniques-spring-uses-to-create-beans-from-beansxml-the-hidden-xml-parsing-journey-revealed?utm_source=hashnode&utm_medium=feed)

In the modern Spring Boot world, where annotations like @Configuration and @ComponentScan dominate, it’s easy to forget that the roots of Spring lie in XML-based configuration. But here’s the thing — even when you use annotations, the core mechan...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-spring-uses-to-create-beans-from-beansxml-the-hidden-xml-parsing-journey-revealed?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 2, 2025](https://hashnode.com/posts/techniques-to-master-bean-visibility-in-spring-comparing-componentscan-import-and-configuration/692eaab9b90eb8113df74227)

### [Techniques to Master Bean Visibility in Spring: Comparing @ComponentScan, @Import, and @Configuration](https://tuanhnet.hashnode.dev/techniques-to-master-bean-visibility-in-spring-comparing-componentscan-import-and-configuration?utm_source=hashnode&utm_medium=feed)

In any well-structured Spring application, managing bean visibility is like managing the backstage of a theater—too much exposure and you lose control; too little and your actors (beans) can’t perform. Developers often rely on annotations like @C...

6 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-to-master-bean-visibility-in-spring-comparing-componentscan-import-and-configuration?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Nov 30, 2025](https://hashnode.com/posts/ways-to-control-spring-bean-visibility-using-autowirecandidatefalse/692c07cab3e6c7c03caa770b)

### [Ways to Control Spring Bean Visibility Using autowireCandidate=false](https://tuanhnet.hashnode.dev/ways-to-control-spring-bean-visibility-using-autowirecandidatefalse?utm_source=hashnode&utm_medium=feed)

Spring’s Inversion of Control (IoC) container can sometimes become a maze of beans and dependencies. Imagine you have dozens of similar service beans across different modules – you may want some beans hidden from automatic injection to avoid conf...

7 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/ways-to-control-spring-bean-visibility-using-autowirecandidatefalse?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Aug 25, 2025](https://hashnode.com/posts/why-unsatisfieddependencyexception-occurs-in-spring-boot-and-how-to-resolve-it/68ac264a3655f0a7b7c38f7e)

### [Why UnsatisfiedDependencyException Occurs in Spring Boot and How to Resolve It](https://tuanhnet.hashnode.dev/why-unsatisfieddependencyexception-occurs-in-spring-boot-and-how-to-resolve-it?utm_source=hashnode&utm_medium=feed)

Spring Boot’s dependency injection is one of the framework's most powerful features, enabling developers to wire components seamlessly. However, encountering UnsatisfiedDependencyException can disrupt your application’s lifecycle and lead to conf...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/why-unsatisfieddependencyexception-occurs-in-spring-boot-and-how-to-resolve-it?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Aug 10, 2025](https://hashnode.com/posts/reasons-and-ways-to-fix-required-a-bean-that-could-not-be-found-in-spring-boot/68985fa85f5ca3e0cff17403)

### [Reasons and Ways to Fix 'Required a Bean That Could Not Be Found' in Spring Boot](https://tuanhnet.hashnode.dev/reasons-and-ways-to-fix-required-a-bean-that-could-not-be-found-in-spring-boot?utm_source=hashnode&utm_medium=feed)

Building robust applications in Spring Boot can sometimes be frustrating when errors emerge, especially when encountering the infamous required a bean that could not be found error. This error indicates that Spring Boot cannot resolve a dependenc...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/reasons-and-ways-to-fix-required-a-bean-that-could-not-be-found-in-spring-boot?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/reasons-and-ways-to-fix-required-a-bean-that-could-not-be-found-in-spring-boot/68985fa85f5ca3e0cff17403)
