上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 33 下一页
示例接口如下: @SPI public interface BallInterface { @Adaptive("ball") String getBall(URL url); } dubbo的代理有两种情况: (1)基于构造函数的静态代理(通过简单的包装对象进行操作) public class C Read More
posted @ 2020-02-04 10:43 soft.push("zzq") Views(785) Comments(0) Diggs(0)
springmvc默认情况下在dispatchServlet的静态代码块中初始化方法init中初始化两个map对象: (1)我们如果使用继承了controller接口的方式,那在spring mvc存储的对象为key:url地址,value:controller对象;这对元素会初始化到BeanNam Read More
posted @ 2020-01-31 21:38 soft.push("zzq") Views(119) Comments(0) Diggs(0)
从getSingleton方法开始: sharedInstance = getSingleton(beanName, new ObjectFactory<Object>() { @Override public Object getObject() throws BeansException { t Read More
posted @ 2020-01-22 13:48 soft.push("zzq") Views(829) Comments(0) Diggs(0)
1 无论是classpathxml还是annotation,最后都会走到AbsApplicationContext的refresh方法中。 2 到达refresh方法中总流程共有13个方法。 3 为spring上下文创建BeanFactory3-1 首先会通过obtainFreshBeanFacto Read More
posted @ 2020-01-20 21:36 soft.push("zzq") Views(192) Comments(0) Diggs(0)
https://zhuanlan.zhihu.com/p/98420439 Read More
posted @ 2020-01-14 22:07 soft.push("zzq") Views(91) Comments(0) Diggs(0)
RandomAccessFile randomAccessFile = new RandomAccessFile("E:/test1.html", "r"); RandomAccessFile w = new RandomAccessFile("E:/test12.html", "rw"); byte[] b = new byte[2]; int i = 0; for (; (i = random Read More
posted @ 2020-01-10 21:10 soft.push("zzq") Views(132) Comments(0) Diggs(0)
读已提交级别: (1)查询使用的是主键时,只需要在主键值对应的那一个条数据加锁即可。 (2)查询使用的是唯一索引时,只需要对查询值所对应的唯一索引记录项和对应的聚集索引上的项加锁即可。 (3)查询使用的是普通索引时,会对满足条件的索引记录都加上锁,同时对这些索引记录对应的聚集索引上的项也加锁。 (4 Read More
posted @ 2020-01-08 21:54 soft.push("zzq") Views(135) Comments(0) Diggs(0)
说起mysql查询效率问题,就无法绕开索引问题,而innodb索引是mysql存储引擎中的重中之重,innodb索引包括“主键索引(聚集索引)”也就是实际数据和主键数据存储在一起的索引。innodb除了主键索引以外就是二级索引,二级索引叶子结点的数据区存储的是主键,mysql每个数据页面有16k大小 Read More
posted @ 2020-01-08 09:46 soft.push("zzq") Views(249) Comments(0) Diggs(0)
@Configration加与不加有什么区别? 加了这个注解以后会在spring中标识了Full属性,如果不标记的话会标记为lite,不过该类会继续解析@ComponentScan和@Implort等。 有个Full标记以后,就会根据当前这个类生成CGLib代理对象,返回的也是代理对象。 而且对于该 Read More
posted @ 2020-01-06 17:41 soft.push("zzq") Views(195) Comments(0) Diggs(0)
第一阶段: 1 准备阶段根据BeanDefintionReader去初始化Bean的定义,那么在bean的定义中通常有两种一个是注解Bean定义读取器(AnnotationBeanDefinitionReader),一个是xmlBean定义读取器。 BeanDefinition是spring中Bea Read More
posted @ 2020-01-04 12:42 soft.push("zzq") Views(277) Comments(0) Diggs(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 33 下一页