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?
Spring default scope is singleton and it will create one object for all instances unless you explicitly specify the scope to be prototype. You have not posted spring configuration. Please post it, it will give a better idea.