spring-ioc


org.springframework
spring-context
4.3.11.RELEASE

    
        org.springframework
        spring-core
        4.3.11.RELEASE
    

    
        org.springframework
        spring-beans
        4.3.11.RELEASE
    

    
        org.springframework
        spring-context-support
        4.3.11.RELEASE
    

bean.xml



    

测试类

ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("配置文件");
HR hr = (HR) context.getBean("对象id");
hr.interview();
注入复杂数据类型


    
    
    
        
            a
            b
        
    
    
        
            aa
            bb
        
    
    
        
            q1
            q2
        
    
    
        
            
                p11
            
            
                p22
            
        
    
    
        
            w11
            w22
        
    

    
        
            
            
        
    

    
        
            
            
        
    
 

你可能感兴趣的:(spring-ioc)