摘要: ApplicationContext类结构 context是一个存储上下文结构的东西,里面会引用BeanFactory BeanFactory类结构 我们从这句代码开始分析,(本文spring采用的是4.2.4的版本) Spring IoC容器对Bean定义资源的载入是从refresh()函数开始的 阅读全文
posted @ 2019-01-15 23:31 少年啦飞驰 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 上一篇讲到了beanFactory的配置文件的解析和beanFactory的创建,都集中到了obtainFreshBeanFactory();这一句代码里了,本篇主要讲bean的创建过程 首先,区分两个接口 前者是创建beanFactroy时候进行处理,后者是创建bean时进行处理 接下来regis 阅读全文
posted @ 2019-01-15 23:30 少年啦飞驰 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 写一个简单的测试用例,Pig实现了Shout接口 中间是WeakCache的代码,好长,省略掉 我们看一下生成的字节码 idea反编译打开看看 于是会在指定目录下生成代理类,打开看看 阅读全文
posted @ 2019-01-15 23:25 少年啦飞驰 阅读(166) 评论(0) 推荐(0) 编辑
摘要: cglib动态代理 spring提供的代理工厂new ProxyFactory(); 设置代理目标 pf.setTarget(target); 为代理目标添加增强pf.addAdvice(advice); 生成代理实例pf.getProxy(); 指定接口进行jdk动态代理 指定接口进行代理 当调用 阅读全文
posted @ 2019-01-15 23:23 少年啦飞驰 阅读(175) 评论(0) 推荐(0) 编辑
摘要: springmvc.xml itemsController实现了Controller接口 进入DispatcherServlet的父类HttpServlet 阅读全文
posted @ 2019-01-15 23:22 少年啦飞驰 阅读(177) 评论(0) 推荐(0) 编辑
摘要: InputThe first line contains the number of test cases T (T ≤ 100). Each test case begins with two positiveintegers n, t (1 ≤ n ≤ 50, 1 ≤ t ≤ 109), the 阅读全文
posted @ 2017-12-10 20:16 少年啦飞驰 阅读(125) 评论(0) 推荐(0) 编辑
摘要: InputThe input consists of a sequence of matrix specifications. Each matrix specification consists of the rowand column dimensions in that order on a 阅读全文
posted @ 2017-12-10 15:18 少年啦飞驰 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Input The program input is from a text file. Each data set in the file stands for a particular set of points. For each set of points the data set cont 阅读全文
posted @ 2017-12-09 21:01 少年啦飞驰 阅读(121) 评论(0) 推荐(0) 编辑
摘要: InputInput consists of several datasets. The rst line of each dataset contains N | the number of bones(1 ≤ N ≤ 24). Next N lines contain bones descrip 阅读全文
posted @ 2017-11-12 23:49 少年啦飞驰 阅读(158) 评论(0) 推荐(0) 编辑
摘要: InputThere are multiple test cases in the input file. Each test case starts with one integer N, (1 ≤ N ≤ 100),the number of star systems on the telesco 阅读全文
posted @ 2017-10-30 00:17 少年啦飞驰 阅读(193) 评论(0) 推荐(0) 编辑