**
eclipse SSH框架实践中遇到的问题
**
严重: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [classpqth:src/com.travel.ssh.beans/User.hbm.xml] cannot be opened because it does not exist
这个bug整整弄了半天了还没有解决,后来检查自己的Hibernate.cfg.xml文件配置发现竟是自己的文件名写错了,没错就是这么低级的错误。不过这么低级的错误这么久没有解决,还是自己对于SSH框架的理解不够深入,在今后的学习中还是得从基础开始学习,好好理解框架的原理及其运行机制。
<mapping resource="com/travel/ssh/beans/User.hbm.xml"/>