Tuanhdotnettuanhnet.hashnode.dev·Sep 18, 2024Why Singleton Bean Scope Can Handle Multiple Parallel Requests And Key ConsiderationsSource: Why Singleton Bean Scope Can Handle Multiple Parallel Requests And Key Considerations 1. Understanding Singleton Scope in Spring The singleton scope in Spring ensures that only one instance of a bean is created and shared across the en...DiscussSpring
Tuanhdotnettuanhnet.hashnode.dev·Sep 16, 2024What is the Difference Between @Controller and @RestController in Spring MVC?Source: What is the Difference Between @Controller and @RestController in Spring MVC? 1. Understanding the Basics Before diving into the differences, it’s essential to comprehend what @Controller and @RestController represent. 1.1 What is...DiscussSpring
Tuanhdotnettuanhnet.hashnode.dev·Sep 14, 2024How to Handle Cyclic Dependency Between Beans in Spring?Source: How to Handle Cyclic Dependency Between Beans in Spring? 1. What is a Cyclic Dependency? A cyclic dependency occurs when two or more beans depend on each other, creating a cycle. For example, Bean A depends on Bean B, and Bean B ...DiscussSpring
Tuanhdotnettuanhnet.hashnode.dev·Aug 27, 2024Reasons Why You Should Use Spring’s @Primary AnnotationSource: Reasons Why You Should Use Spring’s @Primary Annotation 1. Introduction to Spring’s @Primary Annotation 1.1 What is Spring’s @Primary Annotation? The @Primary annotation in Spring is used to indicate that a specific bean should be...Discussanotation
Christian Lehnertblog.christianlehnert.dev·Jul 19, 2024Spring Beans 101: Basics for Building Your First Spring ApplicationEver built a Lego castle? You start with individual bricks, but those bricks come together to form something much cooler, right? Spring Beans are like those bricks for your Java application built with the Spring Framework. In this post, we'll explain...DiscussSpring Boot into ActionSpring
Pablo Sanchidrianbeabetterswe.com·Jul 9, 2024Learn how to use Java Spring BeansIntro Why write this, if there are too many resources already? -Simple, Many answers are too complex and others too simple. My purpose is to show practically how to use it, in other words, a real-case scenario. What is a spring bean? The answer can b...DiscussSpringboot
Mayank Singhcodewithmayank.hashnode.dev·May 14, 2024Bringing Spring Framework to make app loosely coupledSpring Configuration @Configuration Annotation Spring @Configuration annotation is part of the spring core framework. Spring Configuration annotation indicates that the class has @Bean definition methods. So Spring container can process the class and...DiscussSpring framework
Himanshu Pareekblog.javarush.dev·May 25, 2023Dependency Injection in Spring using different annotationsIn the Spring Framework, beans are the fundamental building blocks used for dependency injection and inversion of control. You can work with beans in Spring using various annotations. Here are some commonly used annotations and their purposes: @Compo...Discuss·3 likes·61 readsJava and Spring FrameworkJava
Kishore Rameshkishoreramesh.hashnode.dev·Jan 1, 2023Exploring Java Bean vs POJOAs we know that in Java POJO refers to the Plain old Java object.POJO and Bean class in Java shares some common features which are as follows − Both classes must be public, Which is accessible to all. Properties or variables defined in both classes...Discusspojo