元素类型为 "session-factory" 的内容必须匹配 "(property*,mapping*,(class-cach....解决方法

时间:2014-04-03 07:35:10   收藏:0   阅读:1149

问题:property*,mapping*,(class-cache|collection-cache)*,event*,listener*)

解决的方法:

The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)"

出现这样的错误原因很多

不过有一个原因可能是 比喻说这样的

<mapping resource="com/vo/Users.hbm.xml" />
<mapping resource="com/vo/Utype.hbm.xml" />

<property name="show_sql">true</property>

把 property写在mapping的下面了

<property name="show_sql">true</property>
<mapping resource="com/vo/Users.hbm.xml" />
<mapping resource="com/vo/Utype.hbm.xml" />

 

这样调整一下 就可以了

元素类型为 "session-factory" 的内容必须匹配 "(property*,mapping*,(class-cach....解决方法,布布扣,bubuko.com

原文:http://www.cnblogs.com/kisso143/p/3642057.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!