摘要:        
lookup-method和replaced-method平时用的很少,主要用来解决单例bean中使用原型bean的场景。 一、应用 lookup-method: A.java public class A { public B getB() { return null; } public void    阅读全文
posted @ 2022-09-28 22:19
shigp1
阅读(205)
评论(0)
推荐(1)
        
            
        
        
摘要:        
protected <T> T doGetBean( String name, @Nullable Class<T> requiredType, @Nullable Object[] args, boolean typeCheckOnly) throws BeansException { Strin    阅读全文
posted @ 2022-09-28 16:40
shigp1
阅读(71)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一、DefaultListableBeanFactory的preInstantiateSingletons方法 @Override public void preInstantiateSingletons() throws BeansException { if (logger.isTraceEna    阅读全文
posted @ 2022-09-28 16:21
shigp1
阅读(129)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号