2021年1月30日

SpringBoot加载配置文件的顺序

摘要: 配置文件路径的优先级:我们从属性:DEFAULT_SEARCH_LOCATIONS = "classpath:/,classpath:/config/,file:./,file:./config/可以看出文件路径的先后顺序(注意:后加载的会覆盖先加载的): classpath:/classpath: 阅读全文

posted @ 2021-01-30 20:57 MaXianZhe 阅读(174) 评论(0) 推荐(0) 编辑

Redis值hash操作

摘要: 在使用set 设置string串的时候,value部分不用加引号,但是在操作除了string之外的类型时就得加了 阅读全文

posted @ 2021-01-30 19:50 MaXianZhe 阅读(66) 评论(0) 推荐(0) 编辑

SpringBoot中的 ObjectProvider

摘要: 本文出处 https://www.cnblogs.com/fengxueyi/p/13888562.html 自动配置中的ObjectProvider 在阅读Spring Boot自动配置源码中关于Tomcat的配置时,看到这样如下的自动配置配置源代码。 @Configuration(proxyBe 阅读全文

posted @ 2021-01-30 17:49 MaXianZhe 阅读(3647) 评论(0) 推荐(2) 编辑

直接内存是咋分配的

摘要: UnpooledDirectByteBuf protected UnpooledDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) { super(maxCapacity); if (alloc == 阅读全文

posted @ 2021-01-30 16:43 MaXianZhe 阅读(56) 评论(0) 推荐(0) 编辑

导航