The content of element type "session-factory" must match "(property*,mapping*,(class-cache| c
来源:互联网 发布:未闻花名网络歌手歌词 编辑:程序博客网 时间:2024/06/05 01:18
配置hibernate.cfg.xml时提示The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collection-cache)*,event*,listener*)".的错。
提示先配置property*元素,再配置mapping*元素,依次类推,仔细检查下看看你的程序中是否存在配置顺序错乱的情况。
只是因为在
<hibernate-configuration>
<session-factory>
</session-factory>
</hibernate-configuration>
之间存在元素配置顺序的错误,只需要按提示将顺序调整正确即可。
0 0
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| c
- 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|collectio
- 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| 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|collectio
- Hibernate配置文件报错:The content of element type "session-factory" must match "(property*,mapping*,(c
- The content of element type "hibernate-mapping" must match "(meta*,typedef*,import*,(class|subclass|
- The content of element type "hibernate-configuration" must match "(session-factory,security?)
- The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tupli
- The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tupli
- 解决mybatis问题:The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMa
- The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|inse
- 项目启动报错 content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,...)"
- hibernate.cfg.xml出错:The content of element type "property" must match "(meta*,(column|formula)*
- The content of element type "context" must match "(property*,plugin*,commentGenerator?
- Excel与XML相互转换
- Log4net配置与使用简要说明
- Day21 整合Hibernate和Spring
- Android安全攻击——对象序列化OOM问题
- <HDU2018>母牛的故事
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| c
- Android面试题
- VMware安装全过程
- WebRTC QoS
- 重拾 Java(一): 对象
- 浅谈Java设计模式
- 以Json形式上传数据
- linux 命名管道
- Arduino Uno 激光发射与接收模块传感器 应用