笔记
阳光爱笑~~
这个作者很懒,什么都没留下…
展开
-
MyBatis-Plus多表分页
【代码】MyBatis-Plus多表分页。原创 2023-01-06 11:39:17 · 163 阅读 · 0 评论 -
oracle insert into select
oracle insert into select原创 2022-08-19 15:31:31 · 369 阅读 · 0 评论 -
map 本地缓存 单例模式
map 本地缓存 单例模式原创 2022-08-19 15:24:14 · 301 阅读 · 0 评论 -
根据创建时间分组后去重
根据创建时间分组后去重原创 2022-07-14 20:12:47 · 85 阅读 · 0 评论 -
Oracle 批量插入(insert all into)
oracle 批量新增sql原创 2022-07-04 19:11:44 · 4922 阅读 · 0 评论 -
如何保证消息的顺序性?
面试官心里分析其实这个也是用MQ的时候必问的话题,第一看看你了解不了解顺序这个事儿?第二看看你有没有办法保证消息是有顺序的?这个生产系统中常见的问题。面试题剖析我举个例子,我们以前做过一个mysql binlog同步的系统,压力还是非常大的,日同步数据要达到上亿。mysql -> mysql,常见的一点在于说大数据team,就需要同步一个mysql库过来,对公司的业务系统的数据做各种复杂的操作。你在mysql里增删改一条数据,对应出来了增删改3条binlog,接着这三条binlog发送到MQ里面,到消费出来原创 2022-06-23 19:31:44 · 103 阅读 · 0 评论 -
后缀表达式解析
后缀表达式解析原创 2022-06-19 16:53:25 · 86 阅读 · 0 评论 -
.com和.cn的区别
目录.com.cn域名.com也就是com域名原创 2022-06-16 13:58:48 · 5746 阅读 · 0 评论 -
不同环境下更改profile配置文件
原因: 测试环境和其他环境都有不同的配置文件,那么怎样去更改到对应环境的配置文件呢?原创 2022-06-16 13:52:28 · 334 阅读 · 0 评论 -
FilePathUtils_获取文件的类型,对应的响应类型
package com.hare.file.utils;import org.springframework.http.MediaType;public class FilePathUtils { /** * 获取文件的类型,对应的响应类型 * * @param namePath 文件名 * @return: org.springframework.http.MediaType */ public static MediaType原创 2020-11-18 21:05:05 · 298 阅读 · 0 评论 -
D1_Hutool读取Excel的工具类(两行代码即可)
以前用的封装的工具类太复杂,代码量也非常多, Hutool工具类更好的替代了以前的代码Hutool官网Hutool官网链接依赖首先导入依赖即可使用<!-- 读取excel POI--> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> .原创 2020-11-18 09:18:43 · 400 阅读 · 0 评论 -
与或运算的解析
enum evm { and, or;}@Data@Accessors(chain = true)static class po { Integer id; Boolean bo; evm evm; Integer group;}public static void main(String[] args) { List<po> list = new ArrayList<>(); // ( 1 and 4 ) .原创 2020-11-11 22:41:45 · 228 阅读 · 0 评论