摘要: InputStream 和 Reader: InputStream 和 Reader 是所有输入流的抽象基类 , 本身并不能创建实例执行输入,但是他们是所有输入流的模板,他们的方法是所有输入流都可以使用的方法 InputStream: int read() 从输入流中读取单个字节,返回读取的字节数据 阅读全文
posted @ 2018-09-14 16:50 new_boys 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 流的分类: 1.输入/输出都是从程序运行所在内存的角度来划分的。 输入流:基类主要是InputStream和Reader 输出流:主要是OutputStream和writer作为基类. 他们都是一些抽象基类,无法直接创建实例。 2.字节流和字符流 所操作的数据单元不同——字节流操作单元8位的字节,字 阅读全文
posted @ 2018-09-14 15:13 new_boys 阅读(155) 评论(0) 推荐(0) 编辑
摘要: File 类访问文件和目录 1.访问文件名的相关方法: String getName() 返回File对象所表示的文件名/路径名 (如果是路径 , 就返回最后一级子路径名) String getPaht() 返回File对象所对应的路径名 File getAbsoluteFile() 返回File对 阅读全文
posted @ 2018-09-14 13:51 new_boys 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1. service层 封装 package com.example.demo.service; import java.util.List; import org.springframework.data.domain.Pageable; public abstract class Page<T> 阅读全文
posted @ 2018-09-13 10:44 new_boys 阅读(6796) 评论(0) 推荐(0) 编辑
摘要: 1.首先需要sys或者system权限操作 2.查询需要更改的表的ID select object_id from all_objects where owner = '用户名' and object_name = 'tableName'; 注:表名需要大写 3.通过ID查询出该表所有字段的顺序 s 阅读全文
posted @ 2018-09-12 17:41 new_boys 阅读(2360) 评论(0) 推荐(0) 编辑
摘要: 修改表的操作: 1.oracle 修改表的字段名称 , 字段数据类型: alter table tableName rename column oldName to new Name ; -- 修改字段名称 alter table tableName modify(columnName 数据类型); 阅读全文
posted @ 2018-09-12 17:04 new_boys 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1.符号及描述: 2.常用运算符与表达式: ^ 开始 * 匹配0次或更多 () 域段 [] 包含,默认是一个字符长度 [^] 不包含,默认是一个字符长度 {n,m} 匹配长度 . 任何单个字符(\. 字符点) | 或 \ 转义 $ 结尾 [A-Z] 26个大写字母 [a-z] 26个小写字母 [0- 阅读全文
posted @ 2018-09-12 16:22 new_boys 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 传入一个数据库允许为null的paramterType对象,Mybatis报错插入不能为空,此时不仅需要配置javaType,还有为其指定jdbcType column = #{value , jdbcType = XXX}, 阅读全文
posted @ 2018-09-07 17:40 new_boys 阅读(5153) 评论(1) 推荐(1) 编辑
摘要: <insert id="insertList"> insert into tableName(column1 , column2 , column3) select t.* from( <foreach collection="list" item="obj" index="index" spera 阅读全文
posted @ 2018-05-30 14:46 new_boys 阅读(2587) 评论(0) 推荐(0) 编辑