自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 springcloud之Feign、Ribbon设置超时时间和重试机制的总结

一、 Feign设置超时时间使用Feign调用接口分两层,ribbon的调用和hystrix的调用,所以ribbon的超时时间和Hystrix的超时时间的结合就是Feign的超时时间#hystrix的超时时间hystrix: command: default: execution: timeout: enabled: true isolation:

2020-05-29 15:12:45 829 1

原创 基于spring-security-oauth2实现oauth2

代码地址基于springboot2.1.5,springcloud Greenwich版本实现,该系列分为两个部分:分为内存实现,数据库实现。其中数据库实现采用RBAC权限角色管理。首先声明oauth2是一种协议规范,spring-security-oauth2是对他的一种实现。其次,还有shiro实现,自己根据规范编写代码的实现方式。主流的qq,微信等第三方授权登录方式都是基于oauth2实现的。oauth2的认证方式有授权码,简单,账户密码,客户端等方式,具体请自行百度不做过多的阐述。 本文基于.

2020-05-29 11:43:02 430

原创 vue集成stompjs实现消息推送

1. 安装依赖npm install stompjs2. 在vue中使用2.1 在main.js中定义websocket连接地址: Vue.prototype.$globalWebsocketUrl= ws://localhost:8080/wisdom-classrome/webSocketServer2.2 在<script>标签中: import Stomp from 'stompjs'2.3 method中方法如下:// ****************...

2020-05-27 16:14:23 1711

转载 接口幂等性token方案

1、redis+token+拦截器方案https://blog.csdn.net/LiuAustin/article/details/104439239?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-2.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLe

2020-05-26 18:50:04 740

转载 使用Chronograf(官方说明)

https://blog.csdn.net/weixin_30539625/article/details/97372975

2020-05-21 16:42:24 2690

转载 windows版influxDB安装与配置

https://blog.csdn.net/xiaocxyczh/article/details/78682211

2020-05-21 16:31:03 1224

原创 Spring Cloud中,如何解决Feign/Ribbon第一次请求失败的问题

造成该问题的原因Hystrix默认的超时时间是1秒,如果超过这个时间尚未响应,将会进入fallback代码。而首次请求往往会比较慢(由于Ribbon是懒加载的,在首次请求时,才会开始初始化相关类),这个响应时间可能就大于1秒了。知道原因后,我们来总结一下解决方案。以feign为例,解决方案有如下四种。方法一、将Hystrix超时设长hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds: 5000该配

2020-05-21 16:15:57 308 1

转载 Sprinig Boot优雅实现接口幂等性redis+token

https://blog.csdn.net/bms3236/article/details/100948085

2020-05-21 14:57:18 168

转载 ElasticSearch安装es服务端和Kibana客户端

https://blog.csdn.net/qq_38225558/article/details/85844833

2020-05-21 09:42:30 217

转载 Vue的this.$nextTick用法和意义

https://blog.csdn.net/Teheran/article/details/84630055https://element.eleme.cn/#/zh-CN/component/tree#attributes

2020-05-15 16:30:24 322

转载 谷歌浏览器安装vuejs devtools 插件

https://www.cnblogs.com/chessYu/p/10637939.html

2020-05-12 08:40:41 169

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除