Rohit Bajaj
asked on
Does autowiring creates new instance of class
HI,
If i have a class anotated with say @Component or @Service annotation...
And i autowire this in two other classes will the class hold the same object or does spring creates a new instance of class everytime we do autowire ?
Thanks
If i have a class anotated with say @Component or @Service annotation...
And i autowire this in two other classes will the class hold the same object or does spring creates a new instance of class everytime we do autowire ?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.