AnnotationExceptionNo identifier specified for entity错误org.hibernate.AnnotationException: No identifier specified for entityorg.hibernate.AnnotationException: No identifier specified for entity.
报这个异常的原因是因为JavaBean的主键没有注解映射关系 ,加上对应的主键注解就可以了
微信扫一扫
AnnotationExceptionNo identifier specified for entity错误org.hibernate.AnnotationException: No identifier specified for entityorg.hibernate.AnnotationException: No identifier specified for entity.
报这个异常的原因是因为JavaBean的主键没有注解映射关系 ,加上对应的主键注解就可以了
相关推荐