摘要: 全链路ID: ID生成算法,雪花,叶子 参考连接:https://www.cnblogs.com/Qkxh320/p/distributed_globalId.html 日志追踪:ThreadLocal存储,InheritableThreadLocal 参考文章:https://xie.infoq. 阅读全文
posted @ 2022-04-26 11:33 彩虹雨·洋 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 转载: https://blog.csdn.net/chisiti9654/article/details/100726031 useSmart: 最少切分,最粗粒度划分 <!-- IKAnalyzer useSmart 设置值请保持一致,否则后续查询超过5个词查询不到精确结果 --> <field 阅读全文
posted @ 2022-04-25 14:26 彩虹雨·洋 阅读(327) 评论(0) 推荐(0) 编辑
摘要: Feign的引入使用,代替自己使用http的请求。以下提供流程, 过程中参数需要自行替换,自学网址: https://github.com/mbrukman/netflix-feign/blob/master/README.md 1. 引入Maven <properties> <feign.vers 阅读全文
posted @ 2021-08-20 17:28 彩虹雨·洋 阅读(496) 评论(0) 推荐(0) 编辑
摘要: MySQL中使用了<> 进行条件过滤,结果字段中有NULL 的值也被过滤了 and type<>18 解决办法: and (type<>18 or type is null) 阅读全文
posted @ 2021-02-03 17:07 彩虹雨·洋 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1. xml形式 <bean class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter"> <!-- objectMapper配置 --> <property name="objectMapp 阅读全文
posted @ 2020-11-27 00:43 彩虹雨·洋 阅读(3635) 评论(0) 推荐(0) 编辑
摘要: 原SQL语句:(execution: 2 s 28 ms, fetching: 25 ms) explain select pr.cid, case when pr.type = 2 then ac.auto_cancel else ca.auto_cancel end auto_cancel, p 阅读全文
posted @ 2020-11-26 23:26 彩虹雨·洋 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 事件: Mac本git代码后,进行了提交,另外一个Windows拉取同样的代码,运行会导致乱码发生,而Mac上是没有这个问题的。 原因: Mac上使用的空格与换行是 lf, 而Windows是 crlf 解决办法: 设置git提交时候不要提交crlf 阅读全文
posted @ 2020-11-25 10:32 彩虹雨·洋 阅读(375) 评论(0) 推荐(0) 编辑
摘要: 问题复现 先访问https://a.com, 该网页JS会请求https://api.a.com接口 再访问http://a.com, 该网页JS会请求http://api.a.com,但是查看网络请求发现,http://api.a.com被强制307到了https://api.a.com 经过排查 阅读全文
posted @ 2020-11-18 19:33 彩虹雨·洋 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: 解决办法:pom.xml中加入以下依赖 <dependency> <groupId>org.eclipse.jdt.core.compiler</groupId> <artifactId>ecj</artifactId> <version>4.6.1</version> <scope>provide 阅读全文
posted @ 2020-08-13 13:53 彩虹雨·洋 阅读(1678) 评论(0) 推荐(0) 编辑
摘要: SpringBoot启动时候,报错了 No spring extension(bean) named:defaultCompiler, 百度各种找不到解决办法. 其实它的原因就是找不到对应的包. 解决办法: 删除原有资源库中对应的目录,重新加载 . ____ _ __ _ _ /\\ / ___'_ 阅读全文
posted @ 2020-07-29 13:45 彩虹雨·洋 阅读(2782) 评论(0) 推荐(0) 编辑