摘要: @Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的 阅读全文
posted @ 2021-08-30 22:36 ??,uunu 阅读(86) 评论(0) 推荐(0) 编辑
摘要: @ConfigurationProperties填充对象属性,它默认是从application.yml或application.properties上读,需要作为一个bean,所以还要加@Component或在配置类上加@Bean。 如果要指定配置文件就要加@PropertySource @Prop 阅读全文
posted @ 2021-08-21 21:31 ??,uunu 阅读(47) 评论(0) 推荐(0) 编辑
摘要: sqlSession --|》configuration --|》 MappedStatement --|》 SqlSource --|》BoundSql #XMLStatementBuilder 解析xml,解析qlSource等属性,生成MappedStatement SqlSource sql 阅读全文
posted @ 2021-08-20 22:51 ??,uunu 阅读(49) 评论(0) 推荐(0) 编辑
摘要: class Solution { public int lengthOfLongestSubstring(String s) { Map<Character,Integer> map = new HashMap<>(); char[] chars = s.toCharArray(); int las 阅读全文
posted @ 2021-08-14 00:34 ??,uunu 阅读(14) 评论(0) 推荐(0) 编辑
摘要: @Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的 阅读全文
posted @ 2021-08-11 00:16 ??,uunu 阅读(136) 评论(0) 推荐(0) 编辑
摘要: MapperProxy --|》MapperMethod --|》 SqlSession 调用sh去执行ms → PreparedStatementHandler 解析出stmt,然后执行stmt → resultSetHandler解析结果 #MapperProxy Map<Method, Map 阅读全文
posted @ 2021-08-05 01:43 ??,uunu 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 如果没有分片会,fork生成rdb会阻塞主线程。主线程执行复制操作,此时主线程不能执行别的命令。 例如juc中的写时复制技术。 https://www.cnblogs.com/kltsee/p/14872889.html redis-cluster添加结点和删除结点。 需要进行rehash http 阅读全文
posted @ 2021-07-23 20:46 ??,uunu 阅读(47) 评论(0) 推荐(0) 编辑
摘要: get()没有阻塞,即使有线程正在添加元素也没有阻塞。 public E get(int index) { return get(getArray(), index); } add()是阻塞的, public boolean add(E e) { final ReentrantLock lock = 阅读全文
posted @ 2021-06-10 21:25 ??,uunu 阅读(26) 评论(0) 推荐(0) 编辑
摘要: view: @Authorize @ApiOperation(value = "学期列表") @GetMapping(value = "/list/page") public Result<PageBean<BaseSemesterVo>> list(@ApiParam("入口验证") SignMo 阅读全文
posted @ 2021-06-02 17:25 ??,uunu 阅读(355) 评论(0) 推荐(0) 编辑
摘要: sb#run(): public ConfigurableApplicationContext run(String... args) { StopWatch stopWatch = new StopWatch(); stopWatch.start(); ConfigurableApplicatio 阅读全文
posted @ 2021-06-02 12:07 ??,uunu 阅读(35) 评论(0) 推荐(0) 编辑