摘要:
spring 版本3.1.2 1. spring 并没有缓存 class -> beanDifinition 或者 sington 实例的缓存. 2. 只能先获取所有的beanDifitions [ 含 sington 和 prototype ] + 所有manually registered的 b 阅读全文
摘要:
背景介绍: 服务端期望使用 面向对象编程, 和 spring 结合的话只能是通过 prototype 的 bean 定义,并通过 getBean 获取. 优雅停机探究: 代码说明: 1. 类关系 SimpleSpringTest PrototypeScopeBean 2. 执行流程: SimpleS 阅读全文