会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhenhong
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页
2019年2月16日
bean的创建(五)第二部分 寻找bean的工厂方法实例化
摘要: instanceWrapper = createBeanInstance(beanName, mbd, args); AbstractAutowireCapableBeanFactory.createBeanInstance protected BeanWrapper createBeanInstance(String beanName, RootBeanDefinition mbd, Ob...
阅读全文
posted @ 2019-02-16 23:38 zhen_hong
阅读(556)
评论(0)
推荐(0)
编辑
bean的创建(五)第一部分
摘要: AbstractBeanFactory.doGetBean protected T doGetBean( final String name, final Class requiredType, final Object[] args, boolean typeCheckOnly) throws BeansException { //转换bea...
阅读全文
posted @ 2019-02-16 23:35 zhen_hong
阅读(316)
评论(0)
推荐(1)
编辑
2019年2月11日
request获取容器过程
摘要: 获取容器过程 CoyoteAdapter.postParseRequest(org.apache.coyote.Request req, Request request, org.apache.coyote.Response res, Response response) connector.getService().getMapper().map(serverNa...
阅读全文
posted @ 2019-02-11 20:21 zhen_hong
阅读(925)
评论(0)
推荐(0)
编辑
容器的注册
摘要: MapperListener.startInternal public void startInternal() throws LifecycleException { setState(LifecycleState.STARTING); Engine engine = service.getContainer(); if (engine =...
阅读全文
posted @ 2019-02-11 20:19 zhen_hong
阅读(336)
评论(0)
推荐(0)
编辑
context创建过程解析(三)之deployDirectories
摘要: HostConfig.deployApps() //在监听到start事件类型,也就是StandardHost调用startInternal protected void deployApps() { File appBase = host.getAppBaseFile(); //这个值是在触发before_start时间时生成的,默认是tomcat安装目录+engine名+h...
阅读全文
posted @ 2019-02-11 20:10 zhen_hong
阅读(379)
评论(0)
推荐(0)
编辑
context创建过程解析(二)之deployWARs
摘要: HostConfig.deployApps() //在监听到start事件类型,也就是StandardHost调用startInternal protected void deployApps() { File appBase = host.getAppBaseFile(); //这个值是在触发before_start时间时生成的,默认是tomcat安装目录+engine名+h...
阅读全文
posted @ 2019-02-11 20:09 zhen_hong
阅读(385)
评论(0)
推荐(0)
编辑
context创建过程解析(一)之deployDescriptors
摘要: 总结:主要是创建Context对象,并且将默认context配置,host级别配置,context配置的值设置进去,设置docBase,如果是war包就解压到webapp的目录中,重新设置docBase为war包解压后的目录。如果配置文件中没有指定docBase,那么就以webapps为基路径+context的baseName作为docBase HostConfig.deployApps() ...
阅读全文
posted @ 2019-02-11 18:12 zhen_hong
阅读(562)
评论(0)
推荐(0)
编辑
2018年8月22日
spring与mybatis整合(扫描Mapper接口)
摘要: --> classpath:mybatis/mapper/User.xml --> ...
阅读全文
posted @ 2018-08-22 17:47 zhen_hong
阅读(6616)
评论(0)
推荐(0)
编辑
handlerAdapter与方法返回值的处理
摘要: 前提:处理器方法被调用并返回了结果 public void invokeAndHandle(ServletWebRequest webRequest, ModelAndViewContainer mavContainer, Object... providedArgs) throws Exception { //调用处理器对应的处理器方法 Object ...
阅读全文
posted @ 2018-08-22 12:35 zhen_hong
阅读(739)
评论(0)
推荐(0)
编辑
handlerAdapter与方法调用(参数的解析)
摘要: 前提:当找到handler以后,那么就要让handler发挥作用,这个时候handlerAdapter就派上用场了 这里面比较复杂就是requestMappingHandlerAdapter了,其他的由于handler比较固定,基本上之前调用他们实现的接口的方法。 @Override public final boolean supports(Object handler) { ...
阅读全文
posted @ 2018-08-22 12:34 zhen_hong
阅读(461)
评论(0)
推荐(0)
编辑
上一页
1
···
10
11
12
13
14
15
16
17
18
···
22
下一页