07 2021 档案
摘要:按结果嵌套处理 <!--第一种查询方法:按结果嵌套处理--> <select id="getTeacher" resultMap="TeacherStudent"> select s.id sid, s.name sname, t.name tname, t.id tid from mybatis.
阅读全文
摘要:按照查询嵌套处理 <!--思路: 1. 查询所有的学生信息 2. 根据查询出来的学生的tid 寻找对应的老师 子查询 --> <select id="getAllStudents" resultMap="StudentMap"> select * from mybatis.student; </se
阅读全文
摘要:在默认目录创建.txt文件 import java.io.*; public class CreateTxtFile extends Exception{ public static void main(String[] args){ for(int i = 1;i<100;i++){ File f
阅读全文
摘要:删除目录指定类型的文件 import java.io.*; public class Delete{ public static void main(String[] args){ // 创建File实例对象.指定操作目录在当前目录 File target = new File("."); // 使
阅读全文

浙公网安备 33010602011771号