摘要: 一、搭建webpack4.x环境 1.创建工程文件夹(ReactDemo) 2.在工程文件夹下,快速初始化项目 3.在工程文件夹下,创建源码文件夹(src)和编译打包文件夹(dist) 4.在源码文件夹下,创建index.html和入口index.js文件 5.在工程文件夹下,安装webpack 6 阅读全文
posted @ 2019-09-07 17:48 张界 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 二、SpringApplication.run(String... args)方法解析 1.1 stopWatch.start()分析 分析: 记录当前时间的毫秒值,用于计算启动spring容器时耗时 1.2 配置headless系统变量参数 1.3 创建发布事件的监听器 分析: 也是通过加载/ME 阅读全文
posted @ 2019-08-16 16:53 张界 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 一、SpringApplication(ResourceLoader, Class<?>...)分析: 1.1 确定Spring容器类型 分析: 判断,如果能加载org.springframework.web.reactive.DispatcherHandler,并且不能加载org.springfr 阅读全文
posted @ 2019-08-16 14:26 张界 阅读(694) 评论(0) 推荐(0) 编辑
摘要: package xyz.pascall.mybatis.spring.boot.learn.service.impl; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import lombok.extern.slf4j.Slf4j; import org.springframewo... 阅读全文
posted @ 2019-07-31 13:53 张界 阅读(2043) 评论(0) 推荐(0) 编辑
摘要: package xyz.pascall.mybatis.spring.boot.learn.service.impl; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import lombok.extern.slf4j.Slf4j; import org.springframewo... 阅读全文
posted @ 2019-07-31 10:57 张界 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 参考文章: 【小家Spring】Spring IOC容器启动流程 AbstractApplicationContext#refresh()方法源码分析(一) 阅读全文
posted @ 2019-07-30 13:54 张界 阅读(165) 评论(0) 推荐(0) 编辑
摘要: Java内存模型的深入理解 阅读全文
posted @ 2019-07-03 10:18 张界 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 一、定义 ReentantLock 继承接口 Lock,他是一种可重入锁(*),除了能完成 synchronized 所能完成的所有工作外,还提供了诸如可响应中断锁、可轮询锁请求、定时锁等避免多线程死锁的方法。 二、主要接口 void lock():如果锁处于空闲状态,当前线程将获取到锁;否则如果锁 阅读全文
posted @ 2019-07-02 16:24 张界 阅读(1082) 评论(0) 推荐(0) 编辑
摘要: 一、描述 Class文件是一组以8位(1字节)为基础单位的二进制流。 当数据项大于8位时,按照【高位在前】分割成若干个8位进行存储。 按照Java虚拟机规范的规定,Class文件结构只有两种数据类型:无符号数和表 二、无符号数 无符号数属于基本的数据类型,以u1、u2、u4、u8来分别代表1字节,2 阅读全文
posted @ 2019-06-27 16:15 张界 阅读(3047) 评论(0) 推荐(1) 编辑
摘要: 1、自动装配的配置类 注册DefaultAuthenticationEventPublisher 实现ImportAware, BeanClassLoaderAware接口,加载debugEnabled(boolean),beanClassLoader(ClassLoader)属性 注入object 阅读全文
posted @ 2019-06-15 11:48 张界 阅读(820) 评论(0) 推荐(0) 编辑