摘要: 表字符集修改 SELECT CONCAT( 'ALTER TABLE ', TABLE_NAME, ' CONVERT TO CHARACTER SET utf8mb4;' ) FROM information_schema. TABLES WHERE TABLE_SCHEMA = 'dataBas 阅读全文
posted @ 2024-04-11 09:24 苏南hui 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 使用RSS+n8n同步博客文章到Cubox Cubox Cubox是一款碎片知识文章收集的应用 n8n 低代码的workFlow 整合 大致流程 定时触发器->获取RSS列表->迭代->文章是否已经同步->同步文章到cubox->同步记录写到数据库->结束 这是一个大概的流程,当然也可以实现同步到其 阅读全文
posted @ 2024-02-07 22:44 苏南hui 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 重写 AdaptCachedBodyGlobalFilter 直接在项目中建立一个包名和文件名一样的类,实现覆盖的效果,目前官方的类还不支持拓展 /* * Copyright 2013-2020 the original author or authors. * * Licensed under t 阅读全文
posted @ 2024-01-03 23:52 苏南hui 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 对于一些带宽比较小的服务器,报文内容比较多的应用,这个操作带来的响应是巨大的 #配置gzip server: compression: enabled: true mime-types: application/json 阅读全文
posted @ 2023-12-30 09:47 苏南hui 阅读(89) 评论(0) 推荐(0) 编辑
摘要: spring: cloud: gateway: default-filters: - name: Retry args: retries: 3 RetryConfig 中默认的异常处理为IOException.class, TimeoutException.class public static c 阅读全文
posted @ 2023-12-20 21:22 苏南hui 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 配置转换器 @SuppressWarnings({"rawtypes", "unchecked"}) public class CompositeEnumConverterFactory implements ConverterFactory<String, Enum<?>> { @Override 阅读全文
posted @ 2023-12-19 18:05 苏南hui 阅读(77) 评论(0) 推荐(0) 编辑
摘要: package com.example.demo; import org.junit.jupiter.api.Test; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.c 阅读全文
posted @ 2023-03-08 21:59 苏南hui 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 先配置mvnd的配置文件 conf/mvnd.properties mvnd.jvmArgs=-XX:-MaxFDLimit jenkins 启动命令添加-XX:-MaxFDLimit 修改系统ulimt的open files 大小 阅读全文
posted @ 2023-03-01 22:38 苏南hui 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 现有服务列表 在使用seata时总会超时 通过skyWalking追踪发现 在调用接口camunda/group/list时获取getConnection超时, 在全局事务回滚后,sql又能正常执行 问题原因和解决: 因为没有配置数据库连接池数量,全局事务结束前会挂起connection,服务被频繁 阅读全文
posted @ 2023-02-25 18:58 苏南hui 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Jackson解决泛型丢失 @JacksonTypeInfo 阅读全文
posted @ 2023-01-06 23:25 苏南hui 阅读(19) 评论(0) 推荐(0) 编辑