摘要:
假设数据库中一个user表 此时只有id为1的数据,当我们查询id为2的年龄时的时候返回值为null 但是在mybatis中预定义UserMapper.xml中 <select id="findUserAgeById" parameterType="int" resultType="int"> SE 阅读全文
posted @ 2019-04-01 14:04
疯狂的字母
阅读(3483)
评论(0)
推荐(0)
摘要:
int和integer的区别 1. Ingeter是int的包装类,int的初值为0,Ingeter的初值为null; 2.初始化的时候,int i =1;Integer i= new Integer(1);(要把integer 当做一个类看);但由于有了自动装箱和拆箱使得对Integer类也可使用 阅读全文
posted @ 2019-04-01 13:56
疯狂的字母
阅读(228)
评论(0)
推荐(0)
摘要:
List是一个接口,而ListArray是一个类,ListArray继承并实现了List。 构造方法: List list; //正确 list=null; List list=new List(); // 错误 List list = new ArrayList(); // 此时list是List 阅读全文
posted @ 2019-04-01 12:05
疯狂的字母
阅读(322)
评论(0)
推荐(0)

浙公网安备 33010602011771号