2024年4月23日

策略模式优化if...else

摘要: 场景 根据第三方系统的事件做出不同动作 优化前 @Slf4j @RestController @RequiredArgsConstructor public class WebHookController { @PostMapping("/webhook") public ResponseEntit 阅读全文

posted @ 2024-04-23 11:33 luyifo 阅读(20) 评论(0) 推荐(0)

fastjson导致的程序崩溃:A fatal error has been detected by the Java Runtime Environment

摘要: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000001da4d3ab6b3, pid=15996, 阅读全文

posted @ 2024-04-23 11:24 luyifo 阅读(339) 评论(0) 推荐(0)

apache poi 实现下拉框级联

摘要: 场景需求 最近在项目中遇到个需求,需要提供一个批量导入的功能,常规做法就是提交excel模版文件,然后就是解析该文件读取数据,这时的模版文件在用户输入方面是没有限制的,用户输入啥就是啥,后台在解析的时候对值进行判断数据是否合法; 在现有的业务场景下,是可以进一步限制用户的输入的,这一次的需求数据互相 阅读全文

posted @ 2024-04-23 11:22 luyifo 阅读(364) 评论(0) 推荐(0)

java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking

摘要: spring cloud gateway整合openFeign调用微服务接口异常报错:java.lang.IllegalStateException: block()/blockFirst()/blockLast() are blocking 错误原因 WebFlux中,如果是Mono/Flux.m 阅读全文

posted @ 2024-04-23 11:14 luyifo 阅读(1751) 评论(0) 推荐(0)

feign调用接口报错No qualifying bean of type '***HttpMessageConverters' available

摘要: 在整合spring cloud geateway 时,调用了feign接口,报错No qualifying bean of type 'org.springframework.boot.autoconfigure.http.HttpMessageConverters' available 报错信息 阅读全文

posted @ 2024-04-23 11:13 luyifo 阅读(886) 评论(0) 推荐(0)

fastjson 序列化排除指定字段

摘要: 在使用fastjson序列化时,没有使用的注解的情况下过滤不想要的字段 SimplePropertyPreFilter simplePropertyPreFilter = new SimplePropertyPreFilter(); simplePropertyPreFilter.getExclud 阅读全文

posted @ 2024-04-23 11:11 luyifo 阅读(172) 评论(0) 推荐(0)

mysql删除重复数据保留最新一条数据

摘要: DELETE FROM tb WHERE id not IN ( SELECT max_id FROM ( SELECT max(id) max_id FROM tb GROUP BY column_1,column_2,...colums ) temp ) 阅读全文

posted @ 2024-04-23 11:10 luyifo 阅读(40) 评论(0) 推荐(0)

导航