12 2018 档案

4.显式锁 Lock
摘要:4.1 概念 内置锁 vs 显示锁 synchronize是java语言层面实现的锁,称为内置锁。使用方便代码简洁,而且在jdk新版本优化后,性能也得到了很大的提高。synchronize是一个可重入锁。而Lock是jdk提供开发者是用的一个显式锁。通过lock()和unlock()方法加锁和释放锁 阅读全文

posted @ 2018-12-31 14:32 lukelin1989 阅读(151) 评论(0) 推荐(0)

3.CAS原子操作
摘要:什么是原子性操作,按照官方的解析:原子操作不能在一个中间操作中停止,要么全部成功要么全部失败。(An atomic action cannot stop in the middle: it either happens completely, or it doesn't happen at all. 阅读全文

posted @ 2018-12-28 09:28 lukelin1989 阅读(196) 评论(0) 推荐(0)

2.线程的工具类
摘要:2.1 fork/join框架 什么是分而治之 简单地说把一个大的问题,拆分成若干个子问题,每个问题相互独立,且和原来问题形式相同。最后将每个子问题的解合并得到原问题的解答。 什么是工作密取 举例 带参数继承RecursiveTask / @author 45027056 演示countDownLa 阅读全文

posted @ 2018-12-28 09:27 lukelin1989 阅读(144) 评论(0) 推荐(0)

1.线程的基础和线程的共享和协作
摘要:1.0 基础概念 线程 vs 进程 进程:程序运行时,资源分配的最小单位。进程内会有一个或者多个线程,线程间共享这个进程的资源。 线程:cpu调度的最小单位,依赖进程而存在。 并发 vs 并行 并发:单位时间内,可以处理事情的能力。 并行:同一时刻,可以同时处理事情的能力。 并发编程的好处和注意事项 阅读全文

posted @ 2018-12-28 09:25 lukelin1989 阅读(366) 评论(0) 推荐(0)

使用cucumber & selenium实现一个简单的bddtest
摘要:1.Cucumber介绍 + feature : read requirement +scenario : testing situation,including + Given/ + when/ + then Feature:用来描述我们需要测试的功能 Scenario: 用来描述测试场景 Giv 阅读全文

posted @ 2018-12-28 09:24 lukelin1989 阅读(1127) 评论(0) 推荐(0)

spring mvc源码分析
摘要:1.传统xml配置方式 web.xml里面配置:org.springframework.web.servlet.DispatcherServlet,处理项目的spring配置文件:classpath :wly servlet.xml 2.DispatcherServlet doService 暴露D 阅读全文

posted @ 2018-12-28 09:21 lukelin1989 阅读(163) 评论(0) 推荐(0)

使用ServletContainerInitializer动态注册组件
摘要:1.背景 在web容器(例如tomcat)启动时为提供给第三方组件机会做一些初始化的工作,例如注册servlet或者filtes等。对此servlet规范提供了ServletContainerInitializer来实现这个功能。 每个框架要使用ServletContainerInitializer 阅读全文

posted @ 2018-12-12 00:40 lukelin1989 阅读(581) 评论(0) 推荐(0)

笔记-spring aop 原理学习2
摘要:InstantiationAwareBeanPostProcessor AnnotationAwareAspectJAutoProxyCreator https://blog.csdn.net/qq_27529917/article/details/78454912 / 扩展原理: BeanPost 阅读全文

posted @ 2018-12-07 00:12 lukelin1989 阅读(137) 评论(0) 推荐(0)

spring aop 原理学习
摘要:@EnableAspectJAutoProxy: @Import(AspectJAutoProxyRegistrar.class) 实际是创建了一个以org.springframework.aop.config.internalAutoProxyCreator为beanid的实例Annotation 阅读全文

posted @ 2018-12-05 18:05 lukelin1989 阅读(129) 评论(0) 推荐(0)

如何在eclipse使用git插件
摘要:how to commit file to remote? Team Synchronize Workspace add to index commit and push how to revert the file to speic version single file show in Hist 阅读全文

posted @ 2018-12-05 09:30 lukelin1989 阅读(208) 评论(0) 推荐(0)

01-消息中间件概述和ActiveMq入门
摘要:1.mq解决的问题 + 系统异步处理 + 应用解耦 + 流量削峰 + 日志处理 + 消息通信 2.消息中间件的2中模型 2.1 Point to Point(P2P) / 点对点 / 类比:送快递 特点: + 一个消费生产者必须有一个消息消费者。一对一的关系 + 一个消息发送到queue中,如果mq 阅读全文

posted @ 2018-12-02 00:35 lukelin1989 阅读(188) 评论(0) 推荐(0)

导航