在SSH项目中报错如下:
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.property.access.spi.PropertyAccessBuildingException: Could not locate field nor getter method for property named [com.ithou.crm.domain.Customer#customer_id]
异常描述:属性不能构建异常:无法找到字段和getter方法属性命名
异常原因:映射配置文件中的实体属性名和实体类中属性名不一致。
解决方案: 修改映射配置文件属性名,保证名称和实体类中属性名称一致