2018年12月12日

使用ServletContainerInitializer动态注册组件

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

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

2018年12月7日

笔记-spring aop 原理学习2

摘要: InstantiationAwareBeanPostProcessor AnnotationAwareAspectJAutoProxyCreator https://blog.csdn.net/qq_27529917/article/details/78454912 / 扩展原理: BeanPost 阅读全文

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

2018年12月5日

spring aop 原理学习

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

posted @ 2018-12-05 18:05 lukelin1989 阅读(123) 评论(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 阅读(205) 评论(0) 推荐(0)

2018年12月2日

01-消息中间件概述和ActiveMq入门

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

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

2018年11月29日

Serializable深入理解

摘要: 1.什么是序列化,解决什么问题 序列化可以对象的状态信息转换成可以持久化或者可以传输形式的过程。一般是转为字节数据。而把字节数组还原成原来同等对象的过程成为反序列化。 在Java中,对象的序列化与反序列化被广泛应用到RMI(远程方法调用)及网络传输中。 2.如何使用序列化 2.1 类通过实现java 阅读全文

posted @ 2018-11-29 00:24 lukelin1989 阅读(248) 评论(0) 推荐(0)

2018年11月12日

分布式思想和rpc解决方案介绍

摘要: 1.RPC的诞生 RPC(Remote Procedure Call)远程过程调用,通过这个rpc协议,调用远程计算机上的服务,就像调用本地的服务一样。 不同的服务部署在不同的机器上面,并且在启动后在注册中心进行注册,如果要调用,可以通过rpc调用对应的服务。 如图,在不同的Controller中可 阅读全文

posted @ 2018-11-12 23:27 lukelin1989 阅读(2010) 评论(0) 推荐(0)

2018年11月2日

Spring集成Quartz的3种方式

摘要: 1.使用xml配置方式 Maven依赖 application.xml Job类 测试类 执行结果 initContext successfully 定时任务执行...每5秒执行一次 定时任务执行...每5秒执行一次 2.注解方式 application.xml Job class 执行结果 ini 阅读全文

posted @ 2018-11-02 23:26 lukelin1989 阅读(896) 评论(1) 推荐(0)

2018年10月30日

使用codesmith无法连接mysql问题

摘要: 最近研究codesmith的用法,遇到了如题的问题,记录一下解决的方法。 1.问题描述: 在codesmith中选择MySQLSchemaProvider并连接数据库时,会报以下错误: Test failed. 找不到请求的 .Net Framework 数据提供程序。可能没有安装。 2.解决方案 阅读全文

posted @ 2018-10-30 00:20 lukelin1989 阅读(902) 评论(0) 推荐(0)

2018年10月11日

设计模式系列—单例模式

摘要: 1.单例模式 单例模式,是指使用这种方式创建的对象实例唯一。 类图: 1.1 懒汉模式 1.2 饿汉模式 阅读全文

posted @ 2018-10-11 17:16 lukelin1989 阅读(89) 评论(0) 推荐(0)

导航