Could you please explain why Spring is creating two objects for the configuration of beans shown below, since by default spring default scope is singleton?
The Sprin
In Spring Singleton refers to One bean per Spring container where as in Java Singleton refers to one object per class loader.
So Spring singleton is not same as java singleton. Don't get confused between these two.