HashMap原理-面试题

HashMap中hash函数如何实现,当两个hashCode值相等时会怎样,当两个hashCode值相等时会怎样,何时发生hash碰撞;如何解决hash碰撞,如果两个key的hashCode值相同,如何存储键值对


Thread多线程

1.线程停止packagecn.hm1006.demo;publicclassThreadTestimplementsRunnable{privatebooleanflag=true;@Overridepublicvoidrun(){inti=0;while(flag){System.out.pri


Lamda表达式-jdk1.8新特性

先来看看传统的匿名内部类调用方式:interface MyInterface{ void lMethod();}public class Main { public static void test(MyInterface myInterface){ myInterface


springboot整合dubbo

导入相关依赖<!--dubbo--><dependency><groupId>org.apache.dubbo</groupId><artifactId>dubbo-spring-boot-starter</artifactId>


springboot定时任务

在启动类加上@EnableScheduling//开启定时注解功能执行具体的定时任务在方法上加注解//cron表达式@Scheduled(cron="")


springboot邮件服务

1.导入相关依赖<!--邮件服务--><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-mail</artif