08 2021 档案

摘要:DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); df.format(xxx); 阅读全文
posted @ 2021-08-31 22:30 ??,uunu 阅读(78) 评论(0) 推荐(0)
摘要:@Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的 阅读全文
posted @ 2021-08-30 22:36 ??,uunu 阅读(100) 评论(0) 推荐(0)
摘要:@ConfigurationProperties填充对象属性,它默认是从application.yml或application.properties上读,需要作为一个bean,所以还要加@Component或在配置类上加@Bean。 如果要指定配置文件就要加@PropertySource @Prop 阅读全文
posted @ 2021-08-21 21:31 ??,uunu 阅读(64) 评论(0) 推荐(0)
摘要:sqlSession --|》configuration --|》 MappedStatement --|》 SqlSource --|》BoundSql #XMLStatementBuilder 解析xml,解析qlSource等属性,生成MappedStatement SqlSource sql 阅读全文
posted @ 2021-08-20 22:51 ??,uunu 阅读(64) 评论(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 阅读(22) 评论(0) 推荐(0)
摘要:@Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的 阅读全文
posted @ 2021-08-11 00:16 ??,uunu 阅读(171) 评论(0) 推荐(0)
摘要:MapperProxy --|》MapperMethod --|》 SqlSession 调用sh去执行ms → PreparedStatementHandler 解析出stmt,然后执行stmt → resultSetHandler解析结果 #MapperProxy Map<Method, Map 阅读全文
posted @ 2021-08-05 01:43 ??,uunu 阅读(72) 评论(0) 推荐(0)