Cannot instantiate the type List
来源:互联网 发布:js push 数组 编辑:程序博客网 时间:2024/06/08 00:07
今天在写Hibernate工程中的一个类时用到了List类,于是就创建了一个List对象。运行后控制台提示错误信息为
Cannot instantiate the type List;
查了一下List接口的具体实现方式,List类有两种实现方式,一个是ArrayList;一个是LinkedList。
我的错误写法:
List<person> list = new List<Person>();改成List<Person> list = new ArrayList<Person>()保存后正常。
阅读全文
0 0
- Cannot instantiate the type List
- Cannot instantiate the type List<Product>
- Cannot instantiate the type List<Integer>
- Cannot instantiate the type List<View>
- cannot instantiate the type
- cannot instantiate the type
- Cannot instantiate the type Map
- 关于cannot instantiate the type
- Cannot instantiate the type Map<String,Boolean>
- Cannot instantiate the type HttpClient问题
- Cannot instantiate the type HttpClient问题
- Cannot instantiate the type HttpClient问题
- Cannot instantiate the type HttpClient问题
- AppiumDriver升级到2.0.0版本引发的问题--Cannot instantiate the type AppiumDriver
- AppiumDriver升级到2.0.0版本引发的问题--Cannot instantiate the type AppiumDriver
- AppiumDriver升级到2.0.0版本引发的问题--Cannot instantiate the type AppiumDriver
- AppiumDriver升级到2.0.0版本引发的问题--Cannot instantiate the type AppiumDriver
- AppiumDriver升级到2.0.0版本引发的问题--Cannot instantiate the type AppiumDriver
- [面试]红黑树性质,BST(二叉搜索树)、AVL(平衡二叉搜索树)、RBT(红黑树)、B-Tree(B-树和B+树)
- 条款07:为多态基类声明virtual析构函数
- hdu1068-Girls and Boys(最大独立集,匹配问题)
- Java正则表达式判断是否为手机号码
- c语言的那些操作符
- Cannot instantiate the type List
- VS2008使用技巧及快捷键大全
- tensorflow variable_scope\name_scope
- 基于springmvc实现后台实现简单的验证码
- 算法学习
- 禁止复制兼容input及各个版本浏览器
- 通过生成文件的形式,来获取编号
- .replaceWith()
- GeoServer源码解析和扩展 (一)基础篇