2025年7月29日
摘要: 1:接口: @GetMapping("/{memberCode}/domain") 2:期望获取:/{memberCode}/domain 3:代码: //RequestMappingHandlerMapping requestMappingHandlerMapping = SpringUtil.g 阅读全文
posted @ 2025-07-29 17:02 花开浪漫拾 阅读(1) 评论(0) 推荐(0)
  2025年7月2日
摘要: 1.升级idea后,经常会导致提交窗口的风格被还原,以下是通过设置 --> 高级设置 --> 版本控制恢复个人提交代码的风格习惯。这里主要有两处,由下图所示: 推荐设置: 2.开关效果 ①处不勾选(推荐):本地更改和git窗口合并在一起,个人觉得比较方便。 ①处勾选:本地更改和git窗口完全独立(启 阅读全文
posted @ 2025-07-02 11:40 花开浪漫拾 阅读(104) 评论(0) 推荐(0)
  2024年7月26日
摘要: 注意:该方法只能对抽象类使用,比如:public abstract class Xxx<T>,否则会报错。 代码如下: // 获取当前new的对象的泛型的父类类型 ParameterizedType pt = (ParameterizedType) this.getClass().getGeneri 阅读全文
posted @ 2024-07-26 14:00 花开浪漫拾 阅读(37) 评论(0) 推荐(0)
  2024年7月16日
摘要: 代码: select *, group_concat( round_index order by field(round_index, 3,4,1,2)) from xxx 阅读全文
posted @ 2024-07-16 11:29 花开浪漫拾 阅读(16) 评论(0) 推荐(1)
摘要: 解决方法: 1:在interface接口中手动定义类型转换方法、入参为,待转换的类型参数(比如LocalDate),出参为目标的类型参数(LocalDateTime),方法名称随意。 2:mapstruct的实现类会自动调用该方法,检查是否正确即可。 代码: @Mapper(builder = @B 阅读全文
posted @ 2024-07-16 10:39 花开浪漫拾 阅读(324) 评论(0) 推荐(4)
  2024年6月14日
摘要: 期望效果:在xml里面写sql时自动追加deleted逻辑删除字段。比如SELECT count(0) FROM aaa。 执行时最终为 SELECT count(0) FROM aaa WHERE deleted = '0' 实现代码如下: @Beanpublic TenantLineInnerI 阅读全文
posted @ 2024-06-14 15:48 花开浪漫拾 阅读(326) 评论(0) 推荐(3)
  2024年6月12日
摘要: 代码: <!DOCTYPE html> <html> <head> <style> .reversed-text { transform: rotateY(180deg); } </style> </head> <body> <p class="reversed-text">这是需要反转的文本。</ 阅读全文
posted @ 2024-06-12 14:02 花开浪漫拾 阅读(114) 评论(0) 推荐(1)
  2024年5月15日
摘要: 代码如下: public static <T,K> List<T> listToTree(List<T> list,Predicate<T> isTop,Function<? super T, ? extends K> getId , Function<? super T, ? extends K> 阅读全文
posted @ 2024-05-15 16:28 花开浪漫拾 阅读(498) 评论(0) 推荐(2)
  2024年5月9日
摘要: // ==UserScript== // @name url自动追加端口 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You 阅读全文
posted @ 2024-05-09 18:12 花开浪漫拾 阅读(92) 评论(0) 推荐(0)
  2024年1月10日
摘要: linux根据进程关键搜索字批量结束进程(替换xxxxxx为自己想要查的关键字进程) ps -ef|grep xxxxxx|grep -v grep|awk '{print "kill -9 " $2}' |sh 阅读全文
posted @ 2024-01-10 09:02 花开浪漫拾 阅读(79) 评论(0) 推荐(0)