
笔记
xiaoxiannv601
这个作者很懒,什么都没留下…
展开
-
面试经验总结002
1.数据库数据复制方式2.深拷贝和浅拷贝3.http和https的区别原创 2020-09-02 21:00:03 · 208 阅读 · 0 评论 -
判断是否为回文链表
判断是否为回文链表利用快慢指针:当快指针走到末尾时,慢指针即指向链表中点class Solution { /** * 判断是否为回文链表 * * @param head ListNode类 链表头 * @return bool布尔型 */ public boolean isPalindrome(ListNode head) { // write code here if (head == null || h原创 2020-08-21 16:18:27 · 163 阅读 · 0 评论 -
2020.07.17实习笔记
Spring注解@RunWith就是一个运行器@RunWith(JUnit4.class)就是指用JUnit4来运行@RunWith(SpringJUnit4ClassRunner.class),让测试运行于Spring测试环境@RunWith(Suite.class)的话就是一套测试集合,@ContextConfiguration Spring整合JUnit4测试时,使用注解引入多个配置文件单个文件@ContextConfiguration(Locations=“classpath:appl原创 2020-07-17 17:37:19 · 143 阅读 · 0 评论 -
2020-07-17
MySQL常见索引B-treehashB+treeclustered-index不是索引类型,而是存储方式覆盖索引 covered Index innodb特别有用MyISAM Innodb默认Btree索引,不支持函数索引Memory默认hash索引支持16个以上前缀索引同一个列可以有多个索引...原创 2020-07-17 11:31:28 · 161 阅读 · 0 评论 -
java之Math.abs()
唯一例外:public static void main(String[] args) { int t=Integer.MIN_VALUE; int ab=Math.abs(t); System.out.println(ab); int abb=-Math.abs(t); System.out.println(abb); }-2147483648-2147483648Process finished with原创 2020-06-15 16:55:14 · 355 阅读 · 0 评论 -
Mybatis之缓存
缓存Mybatis缓存mybatis系统默认定义了两级缓存:一级缓存,二级缓存默认情况下,只有一级缓存开启。(SqlSession级别的缓存,也称为本地缓存)二级缓存需要手动开启和配置,他是基于namespace级别的缓存为提高扩展性,Mybatis定义了缓存接口Cache,可通过实现Cache自定义二级缓存小结:只要开启了二级缓存,在同一个Mapper下就有效所有的数据都会先放在一级缓存中只有当回话提交,或者关闭的时候,才会提交的二级缓存中...原创 2020-06-09 22:24:41 · 151 阅读 · 0 评论