Exception:No identifier specified for entity

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012869196/article/details/83504661

Spring注解出现错误:

No identifier specified for entity: com.jacksony.module.wechat.entity.Wx_componentModel

这个是对象持久化的时候出现的异常,简单的解读就是缺少主键。
所以,解决方式就是:给“ID序号”字段加上@Id注解

猜你喜欢

转载自blog.csdn.net/u012869196/article/details/83504661
今日推荐