How does the scope Prototype work?

Technology CommunityCategory: SpringHow does the scope Prototype work?
VietMX Staff asked 3 years ago

Scope prototype means that every time you call for an instance of the Bean, Spring will create a new instance and return it. This differs from the default singleton scope, where a single object instance is instantiated once per Spring IoC container.