08 2021 档案
摘要:DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); df.format(xxx);
阅读全文
摘要:@Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的
阅读全文
摘要:@ConfigurationProperties填充对象属性,它默认是从application.yml或application.properties上读,需要作为一个bean,所以还要加@Component或在配置类上加@Bean。 如果要指定配置文件就要加@PropertySource @Prop
阅读全文
摘要:sqlSession --|》configuration --|》 MappedStatement --|》 SqlSource --|》BoundSql #XMLStatementBuilder 解析xml,解析qlSource等属性,生成MappedStatement SqlSource sql
阅读全文
摘要:class Solution { public int lengthOfLongestSubstring(String s) { Map<Character,Integer> map = new HashMap<>(); char[] chars = s.toCharArray(); int las
阅读全文
摘要:@Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的
阅读全文
摘要:MapperProxy --|》MapperMethod --|》 SqlSession 调用sh去执行ms → PreparedStatementHandler 解析出stmt,然后执行stmt → resultSetHandler解析结果 #MapperProxy Map<Method, Map
阅读全文
浙公网安备 33010602011771号