首页 > 其他分享 >org.hibernate.MappingException: could not instantiate id generator

org.hibernate.MappingException: could not instantiate id generator

时间:2023-03-20 18:35:33浏览次数:48  
标签:hibernate generator could UUIDGenerator org id


org.hibernate.MappingException: could not instantiate id generator

Hibernate的版本不对,
也解决无法创建org.hibernate.id.UUIDGenerator的问题
@GenericGenerator(name = "generator", strategy = "org.hibernate.id.UUIDGenerator")
@Id
@GeneratedValue(generator = "generator")
-----------------


附件是没这个问题的版本

标签:hibernate,generator,could,UUIDGenerator,org,id
From: https://blog.51cto.com/u_3871599/6138469

相关文章