根本原因:我实体类中的类型是raw,没法直接实例化的类型。
private List<String> rightChoices;
private Set<String> multiAnser;
List,Set都是raw 类型,没法实例化。
应该修改为:
private ArrayList<String> rightChoices;
private ArrayList <String> multiAnser;
相关文章
- 11-20grails-MappingException: Could not determine Type
- 11-20grails-MappingException: Could not determine Type
- 11-20hibernate异常找不到get方法org.hibernate.PropertyNotFoundException: Could not find a getter for did in class com.javakc.hibernate.manytomany.entity.CourseEntity
- 11-20hibernate异常:Could not determine type for: java.util.Set
- 11-20java.lang.Exception: Could not determine the type of file "smb://zhangsan:123456@10.77.44.222/o/mmfiles_2016/40094/25556/2130.avi".
- 11-20Java EE 之 Hibernate异常总结【4】org.hibernate.exception.SQLGrammarException: could not execute statement
- 11-20Java EE 之 Hibernate异常解决:org.hibernate.exception.SQLGrammarException: could not execute statement
- 11-20懒加载异常:org.hibernate.LazyInitializationException: could not initialize proxy - no Session
- 11-20【异常及源码分析】org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping
- 11-20实体类注解错误:Could not determine type for: java.util.Set