摘要: import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.json.JSONUtil; import com.alibaba.fastjson.JSON; 阅读全文
posted @ 2023-05-23 14:25 紫枫夜羽 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 方式一: @Component public class CommonUtils { private static SwitchConfig switchConfig; @Autowired public void setSwitchConfig(SwitchConfig switchConfig) 阅读全文
posted @ 2022-06-10 16:22 紫枫夜羽 阅读(3099) 评论(0) 推荐(0) 编辑
摘要: 来源:yq.aliyun.com/articles/72501 sql语句的执行顺序: FROM <left_table> ON <join_condition> <join_type> JOIN <right_table> WHERE <where_condition> GROUP BY <gro 阅读全文
posted @ 2022-06-06 09:24 紫枫夜羽 阅读(22) 评论(0) 推荐(0) 编辑
摘要: Java 中的 BigDecimal,80% 的人竟然都用错了。。。 点击关注 👉 Java核心技术 Java核心技术 微信号 java-core 功能介绍 专注分享Java核心技术干货,包括Java多线程、IO、JVM、Spring Boot、Spring Cloud、IntelliJ IDEA 阅读全文
posted @ 2022-05-31 15:10 紫枫夜羽 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 一、从执行速度上来说 二、从原理上讲 1、DELETE 2、truncate 3、drop MySQL删除数据的方式都有哪些? 咱们常用的三种删除方式:通过 delete、truncate、drop 关键字进行删除;这三种都可以用来删除数据,但场景不同。 一、从执行速度上来说 drop > trun 阅读全文
posted @ 2022-05-25 10:36 紫枫夜羽 阅读(86) 评论(0) 推荐(0) 编辑
摘要: sql语句的执行顺序: FROM <left_table> ON <join_condition> <join_type> JOIN <right_table> WHERE <where_condition> GROUP BY <group_by_list> HAVING <having_condi 阅读全文
posted @ 2022-05-19 11:30 紫枫夜羽 阅读(26) 评论(0) 推荐(0) 编辑
摘要: https://gitee.com/troyzhxu/bean-searcher 阅读全文
posted @ 2022-05-19 10:17 紫枫夜羽 阅读(83) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/duguxiaobiao/article/details/91492965 阅读全文
posted @ 2022-05-13 09:45 紫枫夜羽 阅读(2) 评论(0) 推荐(0) 编辑
摘要: https://mp.weixin.qq.com/s/NFJ78_t6MpqgtcbLFxHL8w 阅读全文
posted @ 2022-05-13 09:02 紫枫夜羽 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1. Stream 的distinct()方法 distinct()是Java 8 中 Stream 提供的方法,返回的是由该流中不同元素组成的流。distinct()使用 hashCode() 和 eqauls() 方法来获取不同的元素。 因此,需要去重的类必须实现 hashCode() 和 eq 阅读全文
posted @ 2022-04-28 15:46 紫枫夜羽 阅读(979) 评论(0) 推荐(0) 编辑