Caused by: org.xml.sax.SAXParseException; lineNumber:
33
; columnNumber:
23
; 元素类型为
"session-factory"
的内容必须匹配
"(property*,mapping*,(class-cache|collection-cache)*,event*,listener*)"
。
在hibernate.cfg.xml里边属性的排放是有顺序的,我把
1
|
<property name=
"hibernate.current_session_context_class"
>thread</property>
|
放在了
1
|
<mapping resource=
"Student.hbm.xml"
/>
|
的前面就运行成功了