一、Spring中Bean的作用域Spring中支持以下五种Bean的作用域:
singleton(默认):单例,也就是Spring容器中只会有一个Bean实例
prototype:每次获取都会创建一个新的Bean实例
request:每
2023-09-08