1:作用域的种类(Spring容器默认的作用域为singleton)
【注】其中前两种最为常用
2:singleton作用域【该域是Spring容器默认的作用域】
3:prototype(原型)作用域
2.5(作用域的种类)、(singleton作用域)、(prototype作用域)
原文:https://www.cnblogs.com/jiafeng1996/p/12360849.html