随笔分类 -  spring及其源码分析专辑

上一页 1 2 3 4 5 6 下一页
仅为业余分析研究spring之用
是时候抛弃web.xml了?
摘要:你是否再为配置文件web.xml容易出错而烦恼?是否为web.xml文件存放位置而不知所措?是否为web.xml为什么要这样配?怎么才能更好的配置web.xml而烦恼?那么一种新的方式出现了: spring提供了支持servlet 3+以上的编程方式,它可以替换或者和web.xml共存的方式工作。其 阅读全文
posted @ 2017-03-02 16:02 一天不进步,就是退步 阅读(8879) 评论(0) 推荐(3) 编辑
Inversion of Control Containers and the Dependency Injection pattern--Martin Fowler
摘要:原文地址:https://martinfowler.com/articles/injection.html n the Java community there's been a rush of lightweight containers that help to assemble compone 阅读全文
posted @ 2017-01-17 09:41 一天不进步,就是退步 阅读(420) 评论(0) 推荐(0) 编辑
spring源码分析之@Conditional
摘要:根源在AnnotationConfigApplicationContext和AnnotationConfigWebApplicationContext,以AnnotationConfigApplicationContext为例: 1.构造方法 一种是注解类方式,一种是扫描方式,殊途同归。以注解类来分 阅读全文
posted @ 2017-01-11 17:45 一天不进步,就是退步 阅读(1989) 评论(2) 推荐(1) 编辑
Spring Enable annotation – writing a custom Enable annotation
摘要:原文地址:https://www.javacodegeeks.com/2015/04/spring-enable-annotation-writing-a-custom-enable-annotation.html Spring provides a range of annotations wit 阅读全文
posted @ 2017-01-03 17:45 一天不进步,就是退步 阅读(527) 评论(0) 推荐(0) 编辑
spring源码分析之@ImportSelector、@Import、ImportResource工作原理分析
摘要:1. @importSelector定义: 实现线索: 具体代码实现: 2、@Import和@ImportResource的实现如下: ConfigurationClassParser.java 3.三种方式: ConfigurationClassParser.java 阅读全文
posted @ 2017-01-03 17:21 一天不进步,就是退步 阅读(6123) 评论(0) 推荐(0) 编辑
How those spring enable annotations work--转
摘要:原文地址:http://blog.fawnanddoug.com/2012/08/how-those-spring-enable-annotations-work.html Spring's Java Config is a great way to configure your applicati 阅读全文
posted @ 2017-01-03 16:13 一天不进步,就是退步 阅读(311) 评论(0) 推荐(0) 编辑
RXJava by Example--转
摘要:原文地址:https://www.infoq.com/articles/rxjava-by-example Key takeaways Reactive programming is a specification for dealing with asynchronous streams of d 阅读全文
posted @ 2016-12-14 14:14 一天不进步,就是退步 阅读(425) 评论(0) 推荐(0) 编辑
Reactor by Example--转
摘要:原文地址:https://www.infoq.com/articles/reactor-by-example Key takeaways Reactor is a reactive streams library targeting Java 8 and providing an Rx-confor 阅读全文
posted @ 2016-12-14 14:07 一天不进步,就是退步 阅读(954) 评论(0) 推荐(0) 编辑
spring源码分析之spring-core总结篇
摘要:1.spring-core概览 spring-core是spring框架的基石,它为spring框架提供了基础的支持。 spring-core从源码上看,分为6个package,分别是asm,cglib,core,lang,objenesis和util。 1.1 asm 关于asm的内幕参见博客: 阅读全文
posted @ 2016-11-22 12:13 一天不进步,就是退步 阅读(12572) 评论(1) 推荐(0) 编辑
spring @import和@importResource
摘要:@ImportResource in spring imports application xml in configuration file which is using @Configuration. All the beans and other properties defined in a 阅读全文
posted @ 2016-11-03 16:47 一天不进步,就是退步 阅读(1375) 评论(0) 推荐(0) 编辑
spring控制并发数的工具类ConcurrencyThrottleSupport和ConcurrencyThrottleInterceptor
摘要:官方文档: beforeAccess()实现 afterAccess()实现 ConcurrencyThrottleSupport是个抽象类,其具体的实现类ConcurrencyThrottleInterceptor 阅读全文
posted @ 2016-10-25 21:08 一天不进步,就是退步 阅读(1623) 评论(2) 推荐(0) 编辑
spring源码分析之<context:property-placeholder/>和<property-override/>
摘要:在一个spring xml配置文件中,NamespaceHandler是DefaultBeanDefinitionDocumentReader用来处理自定义命名空间的基础接口。其层次结构如下: <context>为开头的标签统一在ContextNamespaceHandler中进行解析,Contex 阅读全文
posted @ 2016-08-09 08:41 一天不进步,就是退步 阅读(4261) 评论(0) 推荐(0) 编辑
6-tips-for-managing-property-files-with-spring--转
摘要:原文地址:http://www.summa.com/blog/2009/04/20/6-tips-for-managing-property-files-with-spring What could be simpler than property files? In an enterprise a 阅读全文
posted @ 2016-08-09 08:36 一天不进步,就是退步 阅读(473) 评论(0) 推荐(0) 编辑
SPRING多个占位符配置文件解析源码研究--转
摘要:原文地址:http://www.cnphp6.com/archives/85639 Spring配置文件: settings.properties conf.properties 测试类: 执行上述测试类 报错: 为什么只能解析出第一个property-placeholder配置中的key?第二个p 阅读全文
posted @ 2016-08-04 09:38 一天不进步,就是退步 阅读(1854) 评论(0) 推荐(1) 编辑
Spring对事务管理的支持的发展历程--转
摘要:原文地址:http://www.iteye.com/topic/1123049 1、问题 Java代码 Connection conn = DataSourceUtils.getConnection(); //开启事务 conn.setAutoCommit(false); try { Object  阅读全文
posted @ 2016-08-03 15:23 一天不进步,就是退步 阅读(457) 评论(0) 推荐(0) 编辑
AOP的实现机制--转
摘要:原文地址:http://www.iteye.com/topic/1116696 1 AOP各种的实现 AOP就是面向切面编程,我们可以从几个层面来实现AOP。 在编译器修改源代码,在运行期字节码加载前修改字节码或字节码加载后动态创建代理类的字节码,以下是各种实现机制的比较。 类别 机制 原理 优点 阅读全文
posted @ 2016-08-03 13:47 一天不进步,就是退步 阅读(739) 评论(0) 推荐(0) 编辑
spring源码分析之cache注解
摘要:Spring 3.1 引入了激动人心的基于注释(annotation)的缓存(cache)技术,它本质上不是一个具体的缓存实现方案(例如EHCache 或者 OSCache),而是一个对缓存使用的抽象,通过在既有代码中添加少量它定义的各种 annotation,即能够达到缓存方法的返回对象的效果。 阅读全文
posted @ 2016-08-03 08:35 一天不进步,就是退步 阅读(7434) 评论(0) 推荐(0) 编辑
spring源码分析之context
摘要:重点类: 1、ApplicationContext是核心接口,它为一个应用提供了环境配置。当应用在运行时ApplicationContext是只读的,但你可以在该接口的实现中来支持reload功能。 定义 特点: 提供了一个bean工厂方法来访问应用组件,通过继承org.springframewor 阅读全文
posted @ 2016-08-02 08:35 一天不进步,就是退步 阅读(7433) 评论(0) 推荐(3) 编辑
spring源码分析之freemarker整合
摘要:FreeMarker是一款模板引擎: 即一种基于模板和要改变的数据, 并用来生成输出文本(HTML网页、电子邮件、配置文件、源代码等)的通用工具。 它不是面向最终用户的,而是一个Java类库,是一款程序员可以嵌入他们所开发产品的组件。 FreeMarker是免费的,基于Apache许可证2.0版本发 阅读全文
posted @ 2016-07-28 10:12 一天不进步,就是退步 阅读(6137) 评论(0) 推荐(0) 编辑
spring源码分析之cache demo
摘要:spring提供了对echache、guava、jcache的支持,先看一个echache的示例: 其中 echache.xml文件如下: 缓存的使用: 参考文献: 【1】http://www.mkyong.com/spring/spring-caching-and-ehcache-example/ 阅读全文
posted @ 2016-07-22 16:26 一天不进步,就是退步 阅读(1932) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 下一页