问答详情
源自:1-4 页面引入

谁能帮我看看啊??怎么老是提示没有bean啊?

 Error creating bean with name 'transactionManager' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory ' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sessionFactory ' is defined

提问者:知了海龙 2017-04-02 21:43

个回答

  • 旋转的梧桐叶
    2018-05-22 22:34:54

    看看你单词拼写呢

  • tracydragon
    2017-04-29 19:48:23

    缺少jar包

  • 慕粉4424978
    2017-04-04 16:16:31

    No bean named 'sessionFactory ' is defined

    看看你有没有

    <!-- 配置Hibernate相关属性 -->

    <bean id="sessionFactory"

    class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">