SSH 整合报错org.dom4j.DocumentException
程序员文章站
2022-04-13 21:37:30
...
Caused by: org.dom4j.DocumentException: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20 Nested exception: http://hibernate.org/dtd/hibernate-mapping-3.0.dtd%20
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.util.xml.MappingReader.readMappingDocument(MappingReader.java:75)
... 20 more
原因:在自动生成的XML的映射文件的头信息中,3.0dt后面有个空格<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd ">
将空格去掉
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
推荐阅读
-
SparkStreaming整合Flume的pull方式之启动报错解决方案
-
详解JAVAEE——SSH三大框架整合(spring+struts2+hibernate)
-
Spring+Hibernate+Struts(SSH)框架整合实战
-
详解JAVAEE——SSH三大框架整合(spring+struts2+hibernate)
-
搭建ssh框架的基本步骤(ssh框架整合实战教程)
-
SSH整合中 hibernate托管给Spring得到SessionFactory
-
搭建ssh框架的基本步骤(ssh框架整合实战教程)
-
SparkStreaming整合Flume的pull方式之启动报错解决方案
-
JSP 开发SSH整合异常解决办法
-
解决Linux下ssh登录后出现 报错 Write failed: Broken pipe 的方法