摘要: 1.Spring中的bean的作用域 1.singleton:唯一bean实例,Spring中的bean默认都是单例的。 2.prototype:每次请求都会创建一个新的bean实例。 3.request:每一次HTTP请求都会产生一个新的bean,该bean仅在当前HTTP request内有效。 阅读全文
posted @ 2021-02-28 11:13 鄙人取个名字好难 阅读(146) 评论(0) 推荐(0) 编辑