Mapping (RESOURCE) not found :和BeanFactory not initialized or already closed - call 'refresh' before

1.Mapping (RESOURCE) not found :cn/sxx/model/Supplier.hbm.xml : origin(cn/sxx/model/Supplier.hbm.xml)web

出错的缘由是:hibernate逆向工程时自动生成xxxxr.hbm.xml文件在model包下,同时会对hibernate.cfg.xml进行更新。app

其更新时xxxxr.hbm.xml的路径是model包下的路径。spa

可是个人全部的xxxx.hbm.xml文件都另外打包了,因此出现找不到的问题。hibernate

2.BeanFactory not initialized or already closed - call 'refresh' before accessxml

我把ApplicationContext.xml引入web.xml文件中时把后缀名落下了。it

相关文章
相关标签/搜索