根本原因:我实体类中的类型是raw,没法直接实例化的类型。
private List<String> rightChoices;
private Set<String> multiAnser;
List,Set都是raw 类型,没法实例化。
应该修改为:
private ArrayList<String> rightChoices;
private ArrayList <String> multiAnser;
相关文章
- 实体类注解错误:Could not determine type for: java.util.List
- 【异常及源码分析】org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping
- HibernateProxy异常处理 java.lang.UnsupportedOperationException: Attempted to serialize java.lang.Class: org.hibernate.proxy.HibernateProxy. Forgot to register a type adapter?
- Hibernate注解错误之- org.hibernate.MappingException: Could not determine type for:
- hibernate异常:Could not determine type for: java.util.Set
- hibernate 错误 could not determine type for
- Could not determine type for java util List
- 学习基础平台-Could not determine type for: java.util.Set, at table
- grails-MappingException: Could not determine Type
- org.hibernate.MappingException: Could not determine type for: java.util.List, at table: user, for...