【Bug解决】Spring配置错误:java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] canno
来源:互联网 发布:软件编程网站 编辑:程序博客网 时间:2024/06/09 23:00
【错误提示】
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] cannot be opened because it does not exist
【解决方法】
把
<property name="mappingLocations">
<list>
<value>classpath:/com/test/bean/user.hbm.xml</value>
</list>
</property>
改成
<property name="mappingLocations">
<list>
<value>classpath*:/com/test/bean/*.hbm.xml</value>
</list>
</property>
0 0
- 【Bug解决】Spring配置错误:java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] canno
- ssh整合是Caused by: java.io.FileNotFoundException: class path resource [bean/test/User.hbm.xml] cannot
- 异常解决 java.io.FileNotFoundException: class path resource [spring/springmvc.xml]
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- 异常解决 java.io.FileNotFoundException: class path resource [spring/applicationContext_*.xml]
- Caused by: java.io.FileNotFoundException: class path resource [com/ncs/bean/News.hbm.xml] cannot be
- java.io.FileNotFoundException: class path resource [spring.xml] cannot be opened because it does not
- [SSM/Junit]java.io.FileNotFoundException: class path resource [spring-mybatis.xml] cannot be opened
- java.io.FileNotFoundException: class path resource [spring/ApplicationCont.xml] cannot be opened be
- nested exception is java.io.FileNotFoundException: class path resource [spring/spring-datasource-mog
- class path resource [applicationContext.xml]; nested exception is java.io.FileNotFoundException: cla
- nested exception is java.io.FileNotFoundException: class path resource [applicationContext.xml] cann
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened b
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not
- java.io.FileNotFoundException: class path resource [XXXXX.xml] cannot be opened
- java.io.FileNotFoundException: class path resource [beans.xml] cannot be opened because it does not
- java.io.FileNotFoundException: class path resource [META-INF/xfire/services.xml] cannot be opened be
- java.io.FileNotFoundException: class path resource [XXXXX.xml] cannot be opened
- 91. PHP namespace关键字和__NAMESPACE__常量
- 类的继承
- iOS开发中实现后台定位功能
- java并发编程之ConcurrentHashMap
- Ant入门教程之常用命令
- 【Bug解决】Spring配置错误:java.io.FileNotFoundException: class path resource [cxd/entity/User.hbm.xml] canno
- jQuery 实现小功能之回到顶部
- 挑战程序设计竞赛 多重部分和问题(恰好装满的完全背包)
- 解决 Eclipse Android studio adb 无法打开的问题
- C++中使用Lua脚本 和lua中调用c的方法
- 探索RadioGroup下可否添加子Layout
- Android、java解析json工具类
- 线太细时用UIView或UIImageView都会导致闪烁 但用UILabel就好了
- 2012蓝桥杯赛题题解