Link to home
Start Free TrialLog in
Avatar of Rohit Bajaj
Rohit BajajFlag for India

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
ASKER CERTIFIED SOLUTION
Avatar of gurpsbassi
gurpsbassi
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial