会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
uouu
不念过去,不畏将来,不负余生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2021年8月30日
01导入配置类和用户自定义添加db。ImportBeanDefinitionRegistrar和DeferredImportSelector
摘要: @Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的
阅读全文
posted @ 2021-08-30 22:36 ??,uunu
阅读(95)
评论(0)
推荐(0)
2021年8月21日
@ConfigurationProperties和@PropertySource
摘要: @ConfigurationProperties填充对象属性,它默认是从application.yml或application.properties上读,需要作为一个bean,所以还要加@Component或在配置类上加@Bean。 如果要指定配置文件就要加@PropertySource @Prop
阅读全文
posted @ 2021-08-21 21:31 ??,uunu
阅读(51)
评论(0)
推荐(0)
2021年8月20日
mybatis语句的存储
摘要: sqlSession --|》configuration --|》 MappedStatement --|》 SqlSource --|》BoundSql #XMLStatementBuilder 解析xml,解析qlSource等属性,生成MappedStatement SqlSource sql
阅读全文
posted @ 2021-08-20 22:51 ??,uunu
阅读(51)
评论(0)
推荐(0)
2021年8月14日
leetCode3: 无重复字符的最长子串
摘要: 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
阅读(17)
评论(0)
推荐(0)
2021年8月11日
01导入配置类和用户自定义添加db的ImportBeanDefinitionRegistrar
摘要: @Import(AutoConfigurationImportSelector.class) 只要是 @Import + DeferredImportSelector实现类都可以注入到dbregistry(可以仿照springboot的AutoConfigurationImportSelector的
阅读全文
posted @ 2021-08-11 00:16 ??,uunu
阅读(153)
评论(0)
推荐(0)
2021年8月5日
2mybatis-1条sql在mybatis的执行过程
摘要: MapperProxy --|》MapperMethod --|》 SqlSession 调用sh去执行ms → PreparedStatementHandler 解析出stmt,然后执行stmt → resultSetHandler解析结果 #MapperProxy Map<Method, Map
阅读全文
posted @ 2021-08-05 01:43 ??,uunu
阅读(55)
评论(0)
推荐(0)
2021年7月23日
redis-cluter
摘要: 如果没有分片会,fork生成rdb会阻塞主线程。主线程执行复制操作,此时主线程不能执行别的命令。 例如juc中的写时复制技术。 https://www.cnblogs.com/kltsee/p/14872889.html redis-cluster添加结点和删除结点。 需要进行rehash http
阅读全文
posted @ 2021-07-23 20:46 ??,uunu
阅读(51)
评论(0)
推荐(0)
2021年6月10日
CopyOnWriteArrayList理解
摘要: 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
阅读(28)
评论(0)
推荐(0)
2021年6月2日
分页在controller/service/dao上各层的写法。
摘要: view: @Authorize @ApiOperation(value = "学期列表") @GetMapping(value = "/list/page") public Result<PageBean<BaseSemesterVo>> list(@ApiParam("入口验证") SignMo
阅读全文
posted @ 2021-06-02 17:25 ??,uunu
阅读(379)
评论(0)
推荐(0)
sb#run():
摘要: sb#run(): public ConfigurableApplicationContext run(String... args) { StopWatch stopWatch = new StopWatch(); stopWatch.start(); ConfigurableApplicatio
阅读全文
posted @ 2021-06-02 12:07 ??,uunu
阅读(40)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告