摘要: https://mybatis.org/mybatis-3/zh/configuration.html 阅读全文
posted @ 2021-05-29 04:50 FZZ98 阅读(127) 评论(0) 推荐(0)
摘要: 创建线程的方式 import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.con 阅读全文
posted @ 2021-05-19 18:34 FZZ98 阅读(48) 评论(0) 推荐(0)
摘要: Lambda 函数式接口 只含有一个抽象方法的接口 public interface FunctionalInterface{ void run(); } 推导Lambda表达式 1 无参数 public class LambdaExpNoArgs { // 静态内部类 static class L 阅读全文
posted @ 2021-05-17 15:31 FZZ98 阅读(42) 评论(0) 推荐(0)
摘要: 静态代理模式总结: 真实对象和代理对象都要实现同一个接口 代理对象要代理真实对象 优点 代理对象可以做很多真实对象做不了的事情 真实对象专注做自己的事情 代码 public class StaticProxy { public static void main(String[] args) { Yo 阅读全文
posted @ 2021-05-17 14:41 FZZ98 阅读(39) 评论(0) 推荐(0)
摘要: 画板 import javax.swing.*; public class StartGame { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setBounds(10,10,900,720) 阅读全文
posted @ 2021-05-17 13:54 FZZ98 阅读(56) 评论(0) 推荐(0)
摘要: import java.awt.*; import java.awt.event.*; public class Main{ public static void main(String[] args) { new Calculate().loadFrame(); } } class Calcula 阅读全文
posted @ 2021-05-16 09:17 FZZ98 阅读(49) 评论(0) 推荐(0)
摘要: layout可以叠加效果 import java.awt.*; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public class HomeWork { public static void mai 阅读全文
posted @ 2021-05-15 15:47 FZZ98 阅读(54) 评论(0) 推荐(0)
摘要: public class Recursive { public static void main(String[] args) { long sum = fun(10); System.out.println(sum); } private static int fun(int i) { //终止条 阅读全文
posted @ 2021-05-15 13:08 FZZ98 阅读(35) 评论(0) 推荐(0)
摘要: public class ArraysDemo { public static void main(String[] args) { // 初始化矩阵 int [][] a1 = new int[11][11]; a1[2][1]=1; a1[6][6]=2; a1[10][10]=3; Syste 阅读全文
posted @ 2021-05-14 07:17 FZZ98 阅读(72) 评论(0) 推荐(0)
摘要: Markdown学习 标题: 一级标题 二级标题 三级标题 字体 hello,world! hello,world! hello,world! hello,world! 引用 测试引用 分割线 超链接 点击跳转到 列表 A C A B C 表格 名字 性别 生日 张三 男 19970101 自动生成 阅读全文
posted @ 2021-05-12 09:39 FZZ98 阅读(41) 评论(0) 推荐(0)