Error creating bean with name ‘sessionFactory’ defined in class path resource [spring-hibernate.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [com/book/entity/Book.hbm.xml] cannot be opened because it does not exist
译:创建在类路径资源[spring-hibernate]中定义名为’sessionFactory’的bean时出错。: init方法调用失败;嵌套异常是java.io。资源[com/book/entity/Book.hbm FileNotFoundException:类路径。无法打开,因为它不存在
具体错误位置
把com/book/entity/Book.hbm.xml 改为com/zking/book/entity/Book.hbm.xml即可