摘要: 转自: https://objtube.gitee.io/front-end-roadmap/#/ 阅读全文
posted @ 2021-06-22 21:41 杨大德 阅读(42) 评论(0) 推荐(0)
摘要: http://astah.net/ comparable接口 使用者通过实现compareTo方法来实现自己的排序策略 comparable 阅读全文
posted @ 2021-06-05 04:13 杨大德 阅读(31) 评论(0) 推荐(0)
摘要: 实现单例模式的八种方式 第一种: public class Mg01 { private static final Mg01 INSTANCE = new Mg01(); private Mg01() { } public static Mg01 getInstance() { return INS 阅读全文
posted @ 2021-06-05 02:08 杨大德 阅读(42) 评论(0) 推荐(0)
摘要: 总纲: 一:注解类:Configuration Scope Lazy Contional 二:注入bean的方式: 1、包扫描+组件标注注解(@Controller) 2、@Bean(可以主要用于第三方类库里面的组件,无法手动添加注解) 3、@Import(快速给容器中导入一个组件) 4、使用Spr 阅读全文
posted @ 2021-06-04 02:23 杨大德 阅读(73) 评论(0) 推荐(0)
摘要: @Autowired 有限按照类型查找 再按照属性名称查找bean @Qualifier(value = "asd") @Autowired(required = false) @Qualifier与Autowired 配合使用可以强行指定bean名称 配置类中Bean标识@Primary 表示自动 阅读全文
posted @ 2021-05-31 04:11 杨大德 阅读(42) 评论(0) 推荐(0)
摘要: 三种使用 @ToString public class People { @Value("张三") private String name; // SpEl @Value("#{20-2}") private int age; @Value("${people.six}") private Stri 阅读全文
posted @ 2021-05-31 03:29 杨大德 阅读(152) 评论(0) 推荐(0)
摘要: 1、第一种方式,@Bean指定initMethod和destoryMethod @Bean(name={"person"},initMethod = "init",destroyMethod = "destroy") public Person person(){ return new Person 阅读全文
posted @ 2021-05-31 02:36 杨大德 阅读(239) 评论(0) 推荐(0)
摘要: IO 1、标准输入:FileInputStream File file = new File("abc.txt"); InputStream in = null; try { in = new FileInputStream(file); byte[] bytes = new byte[2]; in 阅读全文
posted @ 2020-11-26 01:20 杨大德 阅读(55) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/2196355/202011/2196355-20201124023906191-1103569028.png)![](https://img2020.cnblogs.com/blog/2196355/202011/2196355-20201124023930300-2078312564.png) 阅读全文
posted @ 2020-11-24 02:40 杨大德 阅读(36) 评论(0) 推荐(0)
摘要: 设置可以主动发起验证 下载git https://www.git-scm.com/download/win 选择换行格式 影响用户名 到暂存区 修改 管理远端: 复制本低 email 阅读全文
posted @ 2020-11-24 02:30 杨大德 阅读(65) 评论(0) 推荐(0)