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

相關文章
相關標籤/搜索