ssh框架整合时出现的一些问题
2018-01-25 21:04
337 查看
问题描述:
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 org.hibernate.MappingNotFoundException:
resource: org.hibernate.tutorial.annotations.Event not found
Caused by: org.hibernate.MappingNotFoundException: resource: org.hibernate.tutorial.annotations.Event not found
原因:我的文件hibernate.cfg.xml里面写有了
<!-- 3、导入映射文件-->
<mapping resource="org.hibernate.tutorial.annotations.Event"/>
而事实上并没有这个org.hibernate.tutorial.annotations.Event东西,所以只要我们将他注释掉或删除掉即可。
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 org.hibernate.MappingNotFoundException:
resource: org.hibernate.tutorial.annotations.Event not found
Caused by: org.hibernate.MappingNotFoundException: resource: org.hibernate.tutorial.annotations.Event not found
原因:我的文件hibernate.cfg.xml里面写有了
<!-- 3、导入映射文件-->
<mapping resource="org.hibernate.tutorial.annotations.Event"/>
而事实上并没有这个org.hibernate.tutorial.annotations.Event东西,所以只要我们将他注释掉或删除掉即可。
相关文章推荐
- ssh整合出现的一些问题总结(spring4+struts2+hibernate4)
- ssh框架整合中出现的问题
- 关于在SSH框架整合时,使用hql语句查询出现 XXX is not mapped 的问题
- SSH框架整合时出现问题的反思与总结
- Spring 与hibernate整合过程中出现的一些问题
- 整合三大框架出现的一些常见的问题及解决的方案
- SSH框架整合出现“LifecycleProcessor not initialized - call 'refresh' before invoking”问题
- ssh框架整合的时候出现Unable to load configuration问题、getHibernateTemplate().save空指针
- SSH整合出现的一些问题
- weblogic 部署出现一些问题的copy
- ssh框架整合异常问题处理
- spring和flex整合中出现的问题。。。
- SpringMVC4、Hibernate4整合过程中出现的问题
- boke练习: springboot整合springSecurity出现的问题,post,delete,put无法使用
- SpringMVC+Spring+Hibernate整合出现Executing an update/delete query问题
- s2sh整合出现的问题
- 安装redis3.2集群出现的一些问题及解决方法
- llibphp5.so:cannot restore segment prot after reloc:Permission 在apache整合php时出现的问题
- share出现的一些问题与解决方法——韩钊
- STRUTES2整合SPRING出现的问题