摘要: 1.首先了解spring中bean的生命周期 类加载,执行静态方法,执行构造方法(父类构造方法),属性初始化,在执行这些动作的过程的前后可以执行一些自己本身的特殊业务操作, 2.在哪个阶段去执行自己的业务操作 使用@postConstruct 或实现 InitializeBean,Applicati 阅读全文
posted @ 2022-05-06 09:03 清明雨下 阅读(104) 评论(0) 推荐(0)
摘要: 指定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)
摘要: 继承ApplicationContextAware getBeanOfType 构造器注入 https://blog.csdn.net/u011659172/article/details/79140561 阅读全文
posted @ 2022-04-28 10:00 清明雨下 阅读(34) 评论(0) 推荐(0)
摘要: @Componentpublic class QueryServiceStrategyFactory implements ApplicationContextAware { public static Map<String, IQueryService> strategies = null; pu 阅读全文
posted @ 2022-04-26 19:26 清明雨下 阅读(31) 评论(0) 推荐(0)
摘要: @Data 注解bean 属性不满足驼峰规则,导致传参接受不到,需要在属性加@JsonProperty("驼峰写法") 阅读全文
posted @ 2022-04-25 08:53 清明雨下 阅读(147) 评论(0) 推荐(0)
摘要: asm bytebuddy 阅读全文
posted @ 2022-04-22 15:46 清明雨下 阅读(6) 评论(0) 推荐(0)
摘要: 见 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)
摘要: 大致步骤: 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)
摘要: 检查 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)
摘要: 开源的wiki- confluence 核心概念 空间 页面 模板 权限 阅读全文
posted @ 2022-02-16 10:19 清明雨下 阅读(249) 评论(0) 推荐(0)