摘要: singleton:单例模式,当spring创建applicationContext容器的时候,spring会欲初始化所有的该作用域实例,加上lazy-init就可以避免预处理; prototype:原型模式,每次通过getBean获取该bean就会新产生一个实例,创建后spring将不再对其管理; 阅读全文
posted @ 2025-06-27 15:20 KLAPT 阅读(4) 评论(0) 推荐(0)