会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
快鸟
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
23
下一页
2020年2月5日
Spring AOP & 切面表达式
摘要: SpringAOP 和 AspectJ 的关系:它们是两种不同的编程风格, SpringAOP 使用 xml 配置的形式配置 aop。而 AspectJ 使用 AspectJ 的注解来配置 aop aspect、JoinPoint、Pointcut、Weaving、AdviceJoinPoint:
阅读全文
posted @ 2020-02-05 17:54 快鸟
阅读(1782)
评论(0)
推荐(1)
编辑
2020年1月19日
Spring 配置项解析: @Value vs @ConfigurationProperties
摘要: @ConfigurationProperties vs @Value https://docs.spring.io/spring-boot/docs/2.2.2.RELEASE/reference/htmlsingle/#boot-features-external-config-vs-value
阅读全文
posted @ 2020-01-19 14:46 快鸟
阅读(1068)
评论(0)
推荐(0)
编辑
2020年1月6日
Spring Bean 的实例化过程
摘要: 2020.7.27 bean 创建的三步走: org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory createBean() --> doCreateBean() 1. createBeanInsta
阅读全文
posted @ 2020-01-06 16:30 快鸟
阅读(5474)
评论(3)
推荐(0)
编辑
2020年1月2日
SpringBoot 配置项解析 && @PropertySource 注解的处理
摘要: SpringBoot 的配置解析是通过 Environment 来实现的。 Environment:与属性相关的 Environment 对象的作用是为用户提供一个方便的服务接口,用于配置属性源并从中解析属性。 Environment 本身实现了 PropertyResolver 接口,最终会委托给
阅读全文
posted @ 2020-01-02 13:58 快鸟
阅读(1504)
评论(0)
推荐(0)
编辑
2019年12月31日
Spring IOC 自动注入流程
摘要: Spring 注解方式自动注入是在 populateBean() 时来完成的。核心代码是通过 AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor 来处理的。 doCreateBean() 时有 3 步: 1 1
阅读全文
posted @ 2019-12-31 19:02 快鸟
阅读(1220)
评论(0)
推荐(0)
编辑
2019年12月25日
SpringBoot 启动流程
摘要: (Version: 2.1.0.RELEASE) 1. 启动入口 @SpringBootApplication public class KvnMainApplication { public static void main(String[] args) { // 1. 创建和初始化 Spring
阅读全文
posted @ 2019-12-25 11:15 快鸟
阅读(673)
评论(0)
推荐(0)
编辑
2019年12月18日
maven-archetype-plugin 的正确打开方式
摘要: 1. 准备好一个编辑好的模板工程 2. 在 pom.xml 中添加 maven-archetype-plugin 插件 3. 执行: mvn archetype:create-from-project,生成对应的 archetype 工程(IDEA 可以直接在 Maven Projects 面板上点
阅读全文
posted @ 2019-12-18 14:52 快鸟
阅读(5940)
评论(0)
推荐(0)
编辑
2019年11月20日
springboot踩坑记
摘要: 1. @ConditionalOnProperty 根据配置加载不同的 bean 场景:对 redis 配置进行封装,实现自动化配置,能兼容哨兵模式和集群模式。想到在 redis 配置中加一个 redis.type 来区分集群和哨兵模式(redis.type=cluster 或 sentinel),
阅读全文
posted @ 2019-11-20 16:15 快鸟
阅读(1868)
评论(0)
推荐(0)
编辑
2019年8月29日
Spring BeanFactory 初始化 和 Bean 生命周期
摘要: (version:spring-context-4.3.15.RELEASE) AbstractApplicationContext#refresh() beanFactory 实例化后,会向 beanFactory 注册 bean 的定义 BeanDefinition。最后 beanFactory
阅读全文
posted @ 2019-08-29 18:01 快鸟
阅读(1146)
评论(0)
推荐(0)
编辑
2019年5月21日
MyCat不支持毫秒 bug fix
摘要: 问题描述:mysql jdbc的驱动(mysql-connector-java-5.1.34.jar)设置的服务器的版本号最低是5.6.4才不会截取时间毫秒,但是现在取的是mycat 的版本号 5.5.8-mycat-1.5.3.0-RELEASE-20170927190645 ,而不是实际的服务器
阅读全文
posted @ 2019-05-21 17:26 快鸟
阅读(455)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
10
···
23
下一页