zoukankan      html  css  js  c++  java
  • aused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method fai

    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'roleDaoImpl': Injection of resource fields failed; nested exception is 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.InvalidMappingException: Could not parse mapping document from resource com/domain/User.hbm.xml


    Caused by: 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.InvalidMappingException: Could not parse mapping document from resource com/domain/User.hbm.xml

    Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/domain/User.hbm.xml

    Caused by: org.hibernate.PropertyNotFoundException: field [description] not found on com.domain.User

    未找到原因的错误,最后解决是把原来使用的User的java整个删了,然后重新建立了一个,然后就好使了。

    跟之前唯一不同的就是private String password; // 密码 之前的密码命名是passWord,难道是这个影响的嘛!!

  • 相关阅读:
    mybatis框架-用类映射返回结果
    ArrayLLis 线程不安 实验
    快速求幂运算笔记
    nyoj 56 阶乘中素数的个数
    求正整数n所有可能的和式的组合(如;4=1+1+1+1、1+1+2、1+3、2+1+1、2+2
    synchronize学习
    nyoj 找球号三(除了一个数个数为基数,其他为偶数,编程之美上的)
    递归判断一个数是否递增
    快速排序c++
    x&-x
  • 原文地址:https://www.cnblogs.com/liuyangfirst/p/6102904.html
Copyright © 2011-2022 走看看