会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
清明雨下
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2022年5月6日
Spring在类初始化时执行一些操作
摘要: 1.首先了解spring中bean的生命周期 类加载,执行静态方法,执行构造方法(父类构造方法),属性初始化,在执行这些动作的过程的前后可以执行一些自己本身的特殊业务操作, 2.在哪个阶段去执行自己的业务操作 使用@postConstruct 或实现 InitializeBean,Applicati
阅读全文
posted @ 2022-05-06 09:03 清明雨下
阅读(104)
评论(0)
推荐(0)
2022年4月30日
list 转map
摘要: 指定key-value,value是对象本身,Function.identity()是简洁写法,也是返回对象本身 Map<Integer,User> userMap3 = userList.stream().collect(Collectors.toMap(User::getId, Function
阅读全文
posted @ 2022-04-30 22:41 清明雨下
阅读(69)
评论(0)
推荐(0)
2022年4月28日
策略模式的实现方式
摘要: 继承ApplicationContextAware getBeanOfType 构造器注入 https://blog.csdn.net/u011659172/article/details/79140561
阅读全文
posted @ 2022-04-28 10:00 清明雨下
阅读(34)
评论(0)
推荐(0)
2022年4月26日
实现策略模式的正确姿势
摘要: @Componentpublic class QueryServiceStrategyFactory implements ApplicationContextAware { public static Map<String, IQueryService> strategies = null; pu
阅读全文
posted @ 2022-04-26 19:26 清明雨下
阅读(31)
评论(0)
推荐(0)
2022年4月25日
属性名不满足驼峰规则,传参接收不到
摘要: @Data 注解bean 属性不满足驼峰规则,导致传参接受不到,需要在属性加@JsonProperty("驼峰写法")
阅读全文
posted @ 2022-04-25 08:53 清明雨下
阅读(147)
评论(0)
推荐(0)
2022年4月22日
字节码增强
摘要: asm bytebuddy
阅读全文
posted @ 2022-04-22 15:46 清明雨下
阅读(6)
评论(0)
推荐(0)
2022年3月28日
backoff restarting failed container
摘要: 见 https://blog.csdn.net/Thomson_tian/article/details/109194862,在yaml增加command:["/bin/bash","-ce","tail -f /dev/null"]
阅读全文
posted @ 2022-03-28 19:28 清明雨下
阅读(332)
评论(0)
推荐(0)
2022年2月23日
gitlab+jenkins+ sonarqube
摘要: 大致步骤: 1. 安装sonarqube server (生成token) 2 安装jenkins 启动 (包括各种插件 sonarqube scanner, 配置gitlab(gitlab提供token,供jenkins拉取项目),sonarqube server地址(token)) 3. 配置
阅读全文
posted @ 2022-02-23 17:12 清明雨下
阅读(168)
评论(0)
推荐(0)
2022年2月18日
maven 依赖
摘要: 检查 settings idea invalidate cache http 不支持 maven版本要在3.8.1以下 A模块依赖B模块,B模块修改后,deploy后,在A所在的缓存需要 invalidate(File >invalidate Caches)
阅读全文
posted @ 2022-02-18 14:29 清明雨下
阅读(25)
评论(0)
推荐(0)
2022年2月16日
wiki
摘要: 开源的wiki- confluence 核心概念 空间 页面 模板 权限
阅读全文
posted @ 2022-02-16 10:19 清明雨下
阅读(249)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告