【Hibernate】property*,mapping*,(class-cache|collection-cache)*,event*,listener*)
2020-03-05 08:42
585 查看
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" />
这样调整一下 就可以了
出现这样的错误原因很多
不过有一个原因可能是 比喻说这样的
<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" />
这样调整一下 就可以了
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- hibernate.cxf.xml 配置文件 解决 内容必须匹配 "(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)"
- hibernate.cxf.xml 配置文件 解决 内容必须匹配 "(property*,mapping*,(classcachecollectioncache)*,event*,listener*)
- hibernate The content of element type "session-factory" must match "(property*,mapping*,(class-cache
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- The content of element type “session-factory” must match “(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| c
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache|collectio
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- Hibernate ClassMetadata and Javabean PropertyDescriptor
- org.hibernate.PropertyNotFoundException Could not find a getter for id in class
- Hibernate中配置文件出现class cn.fpxty.LinkMan not found while looking for property:linkid错误
- 元素类型为 "session-factory" 的内容必须匹配 "(property*,mapping*,(class-cach....解决方法
- org.hibernate.PropertyNotFoundException: Could not find a getter for empDeptId in class
- java.lang.IllegalAccessError: tried to access method net.sf.ehcache.CacheManager.()V from class org.hibernate.cache.EhCa
- Hibernate的映射配置文件*.hbm.xml文件中class和property元素的各属性意义和设置
- hibernate出现:org.hibernate.PropertyNotFoundException: Could not find a getter for id in class
- Hibernate配置文件报错:The content of element type "session-factory" must match "(property*,mapping*,(c