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

Posted 明叶师兄。

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java框架整合错误:org.hibernate.AnnotationException: No identifier specified for entity相关的知识,希望对你有一定的参考价值。

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

以上是关于java框架整合错误:org.hibernate.AnnotationException: No identifier specified for entity的主要内容,如果未能解决你的问题,请参考以下文章