错误提示:
Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Unable to read XML
cause by:
1.Caused by: org.dom4j.DocumentException: http://www.hibernate.net/dtd/hibernate-mapping-3.0.dtd%20 Nested exception: http://www.hibernate.net/dtd/hibernate-mapping-3.0.dtd%20 at org.dom4j.io.SAXReader.read(SAXReader.java:484)
2.Caused by: org.hibernate.InvalidMappingException: Unable to read XML
解决办法:
1.xml文件配置,这是首要的检查项目。
2.各类包的导入要按照某一个教程,而不是都去参考,否则会因为版本的问题造成不必要的错误。
3.我的错误,是最愚蠢的,属于非技术性错误:server 没有启动,仅仅是将web 工程发布上去了。