您的位置:首页 > 运维架构

Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an eleme

2013-01-16 23:30 1551 查看
Exception in thread "main" org.hibernate.HibernateException: Could not parse configuration: /hibernate.cfg.xml

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2246)

at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)

at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)

at com.bjsxt.hibernate.StudentTest.main(StudentTest.java:14)

Caused by: org.dom4j.DocumentException: Error on line 24 of document : Open quote is expected for attribute "{1}" associated with an element type "class". Nested exception: Open quote is expected for attribute "{1}" associated with an element type "class".

at org.dom4j.io.SAXReader.read(SAXReader.java:482)

at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2238)

... 3 more

xml解析 属性必须用引号

class属性必须用引号。。

添上 <mapping class=“com.bjsxt.hibernate.Student”/>

转自:http://blog.csdn.net/zqqlj2004/article/details/6950174
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐