摘要: 1.需要将body复制到exchange,便于之后使用 import io.netty.buffer.UnpooledByteBufAllocator; import lombok.extern.slf4j.Slf4j; import org.springframework.cloud.gatewa 阅读全文
posted @ 2021-06-24 18:22 staystand 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 很好的文章参考:https://www.cnblogs.com/abiu/p/14771729.html 用oauth2实现sso单点登录:https://www.cnblogs.com/cjsblog/p/10548022.html 阅读全文
posted @ 2021-06-21 11:44 staystand 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 参考文章 https://jiming.blog.csdn.net/article/details/103185972 其他文章 https://blog.csdn.net/weixin_44259720/article/details/95996829 https://blog.csdn.net/ 阅读全文
posted @ 2021-06-17 19:04 staystand 阅读(1117) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://mp.baomidou.com/guide/ 1.maven 包 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-generator</artifactId> <version>3. 阅读全文
posted @ 2021-06-10 12:45 staystand 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 1.下载IDE Eval Reset https://gitee.com/pengzhile/ide-eval-resetter/#https://plugins.zhile.io/files/ide-eval-resetter-2.1.14-d2fedb86.zip 2.拖入idea 完成安装 3 阅读全文
posted @ 2021-05-31 10:21 staystand 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 问题@RestController注解,对于返回值是集合类的API接口,其数据还是会被系列化成XML格式 排查原因 经过排查发现是spring-cloud-starter-netflix-eureka-client的Maven依赖间接引入了jackson-dataformat-xml包,而如果Spr 阅读全文
posted @ 2021-05-20 17:48 staystand 阅读(193) 评论(0) 推荐(0) 编辑
摘要: hset 保存的是(key,hk,hv)当hk 重复时覆盖,没有时新增,但是不会清空原有的 hash表。如需全部跟新需要先删除原有redis 阅读全文
posted @ 2021-05-20 17:40 staystand 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1.CachePostBodyFilter将request body 取出来重存 import io.netty.buffer.UnpooledByteBufAllocator; import org.springframework.cloud.gateway.filter.GatewayFilte 阅读全文
posted @ 2021-05-20 10:38 staystand 阅读(1394) 评论(0) 推荐(0) 编辑
摘要: 链接:https://www.cnblogs.com/xuruiming/p/13283288.html 今天使用Eureka Client的时候发现Controller打了@RestController注解,对于返回值是集合类的API接口,其数据还是会被系列化成XML格式: @GetMapping 阅读全文
posted @ 2021-05-08 18:34 staystand 阅读(561) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args){ String strArr = "[{\"0\":\"zhangsan\",\"1\":\"lisi\",\"2\":\"wangwu\",\"3\":\"maliu\"}," + "{\"00\":\"zhangsan 阅读全文
posted @ 2021-04-30 09:26 staystand 阅读(870) 评论(0) 推荐(0) 编辑