No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined: expected single



    

    
        
        
        
        
        
        
        
        
        
        
    

    
        
        
    

    
        
        
    

    
        
    

    
        
        
    

    

    
        
        
        
        
        
        
        
        
        
        
    

    
        
        
    

    
        
        
    

 

出现No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined: expected single主要原因是配置中同时出现




这两者功能是一样的。根据需要去掉其中之一即可

 

你可能感兴趣的:(No qualifying bean of type [org.apache.ibatis.session.SqlSessionFactory] is defined: expected single)