org.springframework.beans.factory.BeanCreationException
来源:互联网 发布:免费炒股软件 编辑:程序博客网 时间:2024/06/18 06:25
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.hibernate.SessionFactory com.zj.usersdaoimpl.UserDaoImpl.sessionFactory; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\apache-tomcat-7.0.42\webapps\CopyStart3\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Composite-id class must implement Serializable: com.zj.entity.Friend
这么一长串,看了半天,我发现我的bean配置没有问题。居然说错误的去创建 叫做userDaoImpl的bean。我也是醉醉的,我真看不懂错误是啥
但是!!我个人觉得重点在最后com.zj.entity.Friend,maybe这个是实体类有问题。果真我发现我的注解有问题,删掉不确定的注解就没有问题了。
ps:很多错误提示都是一长串,有时候可能误导你,so,you can see the last sentence!I hope this can help you!
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException:
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException
- org.springframework.beans.factory.BeanCreationException:
- org.springframework.beans.factory.BeanCreationException
- JavaScript : prototype
- hdu2544最短路
- 2017 ACM/ICPC 亚洲区(乌鲁木齐赛区) 网络赛 F Islands(求使有向图成为强联通图最少需要增加几条边)
- Qt不同版本对中文字符的处理
- 【拜小白opencv】30-平滑处理3线性滤波之——高斯滤波
- org.springframework.beans.factory.BeanCreationException
- List 接口常用子类及其特点
- Android so库Hook技术
- <31>——Next Permutation
- The Rotation Game UVA
- Find n'th Digit of a Number -- 8 kyu
- 搜索------(一)
- 在一个字符串中,找出最长回文子串
- Kinect sdk 2.0 + Opencv 获取深度图像并保存