实体类注解错误:Could not determine type for: java.util.List

来源:互联网 发布:被冒名网络贷款 编辑:程序博客网 时间:2024/05/14 13:06

今天使用spring boot,出现以下错误:

Caused by: org.hibernate.MappingException: Could not determine type
for: java.util.List,,at table: ss_user, for columns:
[org.hibernate.mapping.Column(role_list)]

解决方案:注解要么写在字段上,要么写在getXX上,千万千万不能混合使用,否则会报这个错误!

阅读全文
0 0
原创粉丝点击