Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
弹簧上下文存储在哪里?在哪个数据结构中?(我听说它只是一个 Map,是吗?)(我不是指 xml 文件的路径,我的意思是当 Spring 读取 bean 定义时,它会将有关它的信息存储在某处并注入它)
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry private final Map<String, Object> singletonObjects = new ConcurrentHashMap(256);
Singleton bean 存储在这里。