Fork me on Gitee

java框架整合错误:org.hibernate.AnnotationException: No identifier specified for entity

java框架整合错误:org.hibernate.AnnotationException: No identifier specified for entity
  错误原因是因为在对VipOperatorDto进行对象关系映射的时候忘记加上主键@Id了。
这个错是hibernate的annotation报的错,所以肯定是对象上加的注解有问题。

posted @ 2020-01-12 14:49  明叶师兄。  阅读(677)  评论(0编辑  收藏  举报