上一页 1 ··· 7 8 9 10 11 12 13 14 下一页
摘要: mapper接口中的方法只有一个参数,是不影响程序员开发的可以将参数指定为 pojo类型 或 map 阅读全文
posted @ 2018-12-31 16:16 松松敲代码 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1:先写Mapper接口,UserMapper.java 2:然后遵循4条开发规范,写映射文件,UserMapper.xml 3:将映射文件,UserMapper.xml加入到SqlMapConfig.xml的mappers中 4:编写测试类进行测试 注意:SqlSession对象的getMappe 阅读全文
posted @ 2018-12-31 16:10 松松敲代码 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 使用mapper代理方式开发: 需要编写mapper接口,UserMapper.java需要编写映射文件,UserMapper.xml需要遵循一些开发规范,mybatis便可以自动生成mapper接口实现类代理对象 遵循的开发规范:1:UserMapper.xml中namespace命名空间 与 U 阅读全文
posted @ 2018-12-31 16:06 松松敲代码 阅读(400) 评论(0) 推荐(0) 编辑
摘要: %*是表示命令行传过来的参数,%1表示第一个参数,%2表示第二个参数,以此类推。如执行C:/>hello.bat hello world, %1取出来就是hello %2取出来就是world hello.bat文件内容: 进行测试: C:\Users\taisong.zhang\Desktop>he 阅读全文
posted @ 2018-12-14 16:55 松松敲代码 阅读(2530) 评论(0) 推荐(0) 编辑
摘要: idea右侧编辑区设置护眼色 阅读全文
posted @ 2018-11-23 14:53 松松敲代码 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 添加:字段不为空,不指定默认值需要先删除表中的所有记录,再添加 字段不为空,指定了默认值直接添加(已有记录,这个字段的值都是默认值) 修改:为空-->不为空(无默认值)先删除这个字段为空的记录,再修改 不为空(无默认值)-->为空直接修改 阅读全文
posted @ 2018-11-23 14:33 松松敲代码 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1 -- 删除表 2 drop table check_test; 3 -- 不为空,不为null的值只能是0,1(不为空,值只能是0,1) 4 create table check_test( 5 default_flag number(1) not null 6 -- 检查约束 7 check (default_flag in(0,1)) 8 ); 9 10 -- ... 阅读全文
posted @ 2018-11-23 14:32 松松敲代码 阅读(335) 评论(0) 推荐(0) 编辑
摘要: /** 父亲 */ function Father(){ this.name = 'pine'; } Father.prototype={age:27}; Father.prototype.constructor=Father; /** 孩子 */ function Child(){ Father.call(this); this.address='杭州市... 阅读全文
posted @ 2018-11-23 14:12 松松敲代码 阅读(520) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 父亲 3 */ 4 function Father(){ 5 this.password='123456'; 6 this.sex='男'; 7 } 8 9 Father.prototype = { 10 name : 'pine', 11 age : 27, 12 getName:function... 阅读全文
posted @ 2018-11-23 14:11 松松敲代码 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 父亲 3 */ 4 function Father(){ 5 this.name = 'pine'; 6 this.age = 27; 7 } 8 9 Father.prototype= { 10 birth:'1991-05-07', 11 address:'杭州市西湖区' 12 }; 13 Father... 阅读全文
posted @ 2018-11-23 14:08 松松敲代码 阅读(433) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 下一页