In spring, we can add the scope attribute to a bean tag in the configuration file. This will ensure that we can determine whether a single instance of an object is shared amongst several variables(Singleton) or a new object is instantiated whenever a variable is trying to instantiate that bean object(Prototype).
No comments:
Post a Comment