当前位置: 代码迷 >> Java Web开发 >> 读取不到资源文件解决思路
  详细解决方案

读取不到资源文件解决思路

热度:162   发布时间:2016-04-17 13:28:53.0
读取不到资源文件
Exception   sending   context   initialized   event   to   listener   instance   of   class   org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException:   Error   creating   bean   with   name   'sessionFactory '   defined   in   class   path   resource   [config/spring/database.xml]:   Invocation   of   init   method   failed;   nested   exception   is   java.io.FileNotFoundException:   class   path   resource   [classpath:com/model/users/user.hbm.xml]   cannot   be   opened   because   it   does   not   exist
Caused   by:   java.io.FileNotFoundException:   class   path   resource   [classpath:com/model/users/user.hbm.xml]   cannot   be   opened   because   it   does   not   exist

请问这是怎么回事?请高手指点迷津。谢谢!!!

------解决方案--------------------
[classpath:com/model/users/user.hbm.xml] cannot be opened because it does not exist

已经说得很清楚了
------解决方案--------------------
看看,mapping文件夹下有没有user.hbm.xml,或者web.xml下看看有相关的uesr.hbm.xml
  相关解决方案