The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
来源:互联网 发布:淘宝购物评级一颗星 编辑:程序博客网 时间:2024/05/29 18:48
配置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>
之间存在元素配置顺序的错误,只需要按提示将顺序调整正确即可。
3 0
- 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
- 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|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
- 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?
- 算法 Heap sort
- 有关ASM和CGLIB的介绍
- SQLite数据库框架ORMLite与GreenDao的简单比较
- Linux下多线程编程
- static 关键词的使用
- The content of element type "session-factory" must match "(property*,mapping*,(class-cache| collect
- 职责链模式
- oracle关闭listener.log日志
- C++对象模型-笔记三
- Android UI - 实现广告Banner轮播效果
- 算法 binary search
- 【BZOJ 3529】 [Sdoi2014]数表
- 响应式网页设计
- 数据链路层和网络层