会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
staystand
一个小兵
博客园
首页
新随笔
联系
订阅
管理
2021年6月24日
gateway对请求参数加解密
摘要: 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
阅读(566)
评论(0)
推荐(0)
2021年6月21日
oauth2和jwt实现认证和鉴权
摘要: 很好的文章参考: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
阅读(170)
评论(0)
推荐(0)
2021年6月17日
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception 异常
摘要: 参考文章 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
阅读(1157)
评论(0)
推荐(0)
2021年6月10日
mybatis-plus
摘要: 官方文档: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
阅读(79)
评论(0)
推荐(0)
2021年5月31日
### idea 2021激活
摘要: 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
阅读(230)
评论(0)
推荐(0)
2021年5月20日
@RestController注解,对于返回值是集合类的API接口,其数据还是会被系列化成XML格式
摘要: 问题@RestController注解,对于返回值是集合类的API接口,其数据还是会被系列化成XML格式 排查原因 经过排查发现是spring-cloud-starter-netflix-eureka-client的Maven依赖间接引入了jackson-dataformat-xml包,而如果Spr
阅读全文
posted @ 2021-05-20 17:48 staystand
阅读(225)
评论(0)
推荐(0)
redis hset 哈希表存储问题
摘要: hset 保存的是(key,hk,hv)当hk 重复时覆盖,没有时新增,但是不会清空原有的 hash表。如需全部跟新需要先删除原有redis
阅读全文
posted @ 2021-05-20 17:40 staystand
阅读(601)
评论(0)
推荐(0)
gateway 实现接口日志保存
摘要: 1.CachePostBodyFilter将request body 取出来重存 import io.netty.buffer.UnpooledByteBufAllocator; import org.springframework.cloud.gateway.filter.GatewayFilte
阅读全文
posted @ 2021-05-20 10:38 staystand
阅读(1523)
评论(0)
推荐(0)
2021年5月8日
Spring Boot应用的Controller返回的集合类数据是XML格式的可能原因
摘要: 链接:https://www.cnblogs.com/xuruiming/p/13283288.html 今天使用Eureka Client的时候发现Controller打了@RestController注解,对于返回值是集合类的API接口,其数据还是会被系列化成XML格式: @GetMapping
阅读全文
posted @ 2021-05-08 18:34 staystand
阅读(791)
评论(0)
推荐(0)
2021年4月30日
json 转list
摘要: 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
阅读(910)
评论(0)
推荐(0)
下一页
公告