文章分类 -  spring

mybatis-Spring ClassPathMapperScanner源码分析(自定义注解加载Bean)
摘要:转载至:https://blog.csdn.net/jackyechina/article/details/52980903 摘要: 在使用mybatis时,可以通过mybatis-spring的MapperFactoryBean来配置一系列的DAO接口,MapperFactoryBean的getO 阅读全文

posted @ 2018-06-08 16:04 腾飞的鹰 阅读(1016) 评论(0) 推荐(0)

Spring的BeanFactoryPostProcessor和BeanPostProcessor
摘要:原文转载出处:https://blog.csdn.net/caihaijiang/article/details/35552859 BeanFactoryPostProcessor和BeanPostProcessor,这两个接口,都是Spring初始化bean时对外暴露的扩展点。两个接口名称看起来很 阅读全文

posted @ 2018-06-08 14:51 腾飞的鹰 阅读(1021) 评论(0) 推荐(0)

Java —— MessageFormat类 处理国际化
摘要:一、MessageFormat 概览 java.text包中的 Fomart 接口是所有处理格式的基础接口,有三个子类:DateFormat、MessageFormat、NumberFormat。 MessageFormat 是专门处理文本格式的类,且没有子类。 二、MessageFormat 细节 阅读全文

posted @ 2018-06-01 14:45 腾飞的鹰 阅读(764) 评论(0) 推荐(0)

@Resource、@Autowired、@Qualifier的注解注入及区别
摘要:在Java代码中可以使用 @Resource 或者 @Autowired 注解方式来进行注入。 虽然 @Resource 和 @Autowried 都可以完成依赖注入,但是他们是有区别的。一: @Resource 默认是按照名称来装配注入的,只有当找不到与名称匹配的bean才会按照类型来注入。 它有 阅读全文

posted @ 2018-06-01 10:58 腾飞的鹰 阅读(440) 评论(0) 推荐(0)

springMVC源码分析--HandlerInterceptor拦截器(一)
摘要:对SpringMVC有所了解的人肯定接触过HandlerInterceptor拦截器,HandlerInterceptor接口给我们提供了3个方法: (1)preHandle: 在执行controller处理之前执行,返回值为boolean ,返回值为true时接着执行postHandle和afte 阅读全文

posted @ 2018-05-16 15:51 腾飞的鹰 阅读(125) 评论(0) 推荐(0)

谈谈spring中的拦截器interceptor
摘要:一,HandlerInterceptor拦截器 这三个方法都是干什么的,有什么作用,什么时候调用,不同的拦截器之间是怎样的调用顺序呢?这还得参考一下DispatcherServlet的doDispatch方法 代码有点长,但是它封装了springMVC处理请求的整个过程。首先根据请求找到对应的Han 阅读全文

posted @ 2018-05-16 14:18 腾飞的鹰 阅读(1937) 评论(0) 推荐(1)

导航