Spring Bean 作用域
单例模式
singleton Bean 作用域:在BeanFactory中唯一。
原型模式
prototype Bean 作用域:
servlet 引擎:
request Bean 作用域: 将Spring Bean 存储在Servlet Request上下文中
session Bean 作用域:将SpringBean存储在HttpSession中
application bean 作用域:将SpringBean存储在ServletContext中。
自定义Bean 作用域