日期:2014-05-18  浏览次数:20715 次

读取不到资源文件
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