Every Java Developer come across the terms Java Bean, Bean Class & Spring Bean. Most of the times people think that all are the same and used interchangeably. Even sometimes people consider them as a simple POJO class. In fact, these all have some logical differences. There are some set of standards & guidelines provided by Programmers that make them different from each other. In this article 'What is Spring Bean?', we will start with the fundamentals which are also essential to know, then we will discuss the Spring Bean with examples. Please note that if you define a class that doesn't follow the guidelines of being a Spring Bean, the Java compiler will never complain you. In contrast, the Spring
Tag: bean in spring
Spring Boot Bean Annotations With Examples
In this article we will discuss on 'Spring Boot Bean Annotations with Examples'. Needless to say, these annotations play a crucial role in creating basic as well as enterprise level Spring Boot Applications. If you want to learn all annotations which are generally used in a Spring Boot Project, kindly visit our article 'Spring Boot Annotations with Examples'. Let's discuss about 'Spring Boot Bean Annotations with Examples' here only. What is a Java Bean? Java Bean is a simple java helper class, used to transfer data between classes or applications. Typically, it doesn't act as a main class, but like postman or delivery boy between two classes. It doesn't contain any logic. There are some standard guidelines to develop a Java Bean class: 1.