import org.springframework.stereotype.Component;
@Component
public class Student
{
// Bean logic goes here
}
NOTE : By default, the bean name will be the class name with the first letter lowercased (student in this case).
@Component("stdObj1")
public class Student
{
// Bean logic goes here
}
Your feedback helps us grow! If there's anything we can fix or improve, please let us know.
Weโre here to make our tutorials better based on your thoughts and suggestions.