为了账号安全,请及时绑定邮箱和手机立即绑定

我用myeclipse为工程添加了hibernate能力,又添加了spring能力,但是生成的applicationContext.xml报错

我用myeclipse为工程添加了hibernate能力,又添加了spring能力,但是生成的applicationContext.xml报错

qq_莫非 2017-12-26 22:08:02
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd" xmlns:tx="http://www.springframework.org/schema/tx"> <bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean"> <property name="configLocation" value="classpath:hibernate.cfg.xml"> </property> </bean> <bean id="transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager"> <property name="sessionFactory" ref="sessionFactory" /> </bean> <tx:annotation-driven transaction-manager="transactionManager" /></beans>提示org.springframework.orm.hibernate5.LocalSessionFactoryBean这句配置错误为:The fully qualified name of the bean's class, except if it serves only as a parent definition for child  bean definitions.怎么解决啊?
查看完整描述

目前暂无任何回答

  • 0 回答
  • 0 关注
  • 1259 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号