org.hibernate.PropertyNotFoundException: Could not find a getter for titlse in class com.po.Intro异常

来源:互联网 发布:"淘宝整机烈士墙" 编辑:程序博客网 时间:2024/04/29 07:28

 

org.hibernate.PropertyNotFoundException: Could not find a getter for titlse in class com.po.Intro

这个异常说明:
    1)getter()方法写错了,没有按照javaBean的规则写.
    2)*.hmb.xml中的属性名和pojo中的是否一致.注意:属性名是否多了空格.或者自动生成POJO时没有匹配每个表的*.hmb.xml文件

 

 

本人犯了一次这样的错误,重新生成POJO时,pojo和配置文件*.hmb.xml中的属性不相同了