Intellij idea 提示SessionFactory 没有类型匹配,不能注入

来源:互联网  时间:2016/7/20 16:49:15

关于网友提出的“ Intellij idea 提示SessionFactory 没有类型匹配,不能注入”问题疑问,本网通过在网上对“ Intellij idea 提示SessionFactory 没有类型匹配,不能注入”有关的相关答案进行了整理,供用户进行参考,详细问题解答如下:

问题: Intellij idea 提示SessionFactory 没有类型匹配,不能注入
描述:

hibernatespringmvc

错误提示信息: could not autowire. no beans of 'sessionfactory' type found 
下面是我的sessionFactory的配置:
 

        
        
            
                
            
        
        
        
        
            
                ${hibernate.hbm2ddl.auto}
                ${hibernate.dialect}
                ${hibernate.show_sql}
                ${hibernate.format_sql}
                ${hibernate.jdbc.batch_size}
                ${hibernate.cache.use_query_cache}
            

        
    

解决方案1:

你的hibernate是版本4???

上一篇eclipse 怎么配置spring MVC,新手 求指导
下一篇LocalSessionFactoryBean为什么能注入到HibernateDaoSupport
明星图片
相关文章
《 Intellij idea 提示SessionFactory 没有类型匹配,不能注入》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)