在上一篇文章里,我们通过注入sentinel component到apigateway实现了对下游服务的保护,不过受限于目前变更component需要人工的重新注入配置以及重启应用更新component等等原因,对于真实的环境运维稍有难度,最近我根据sentinel-golang相关文档重新编写了一 ...
分类:
Web程序 时间:
2021-06-13 09:24:46
阅读次数:
0
恢复内容开始 路由跳转有两种方式: 1.通过params属性传值,该方法在跳转页面刷新时数据会丢失 methods: { /** * 跳转子菜单 */ goSub (param) { this.click = true this.$router.push({ // path: `/${url}` n ...
分类:
其他好文 时间:
2021-06-11 18:52:07
阅读次数:
0
使用golang每天给女朋友发送微信信息 我们使用github.com/eatMoreApple/openwechat就可以使用golang操作微信发送消息了 package main import ( "fmt" "github.com/eatMoreApple/openwechat" "time ...
分类:
微信 时间:
2021-06-11 18:27:23
阅读次数:
0
IOC 容器对 Bean 的生命周期: ①. 通过构造器或工厂方法创建 Bean 实例 ②. 为 Bean 的属性设置值和对其他 Bean 的引用 ③ . 将 Bean 实 例 传 递 给 Bean 后 置 处 理 器 的 postProcessBeforeInitialization 方 法 ④. ...
分类:
编程语言 时间:
2021-06-11 18:26:31
阅读次数:
0
... from https://stackoverflow.com/questions/44471749/golang-enter-ssh-sudo-password-on-prompt-or-exit golang ssh sudo package main import ( "bytes" " ...
分类:
其他好文 时间:
2021-06-10 18:09:09
阅读次数:
0
1.数据交互 0.配置代理 1.package.json配置 ,需要重启项目 { //配置代理 "proxy":"http://localhost:5000", } axios("后端的路径") 2.手动配置 1.安装依赖 cnpm i http-proxy-middleware --save 2. ...
分类:
其他好文 时间:
2021-06-10 18:01:19
阅读次数:
0
<div v-mydirect:fn="item"></div> Vue.directive('mydirect', { bind (el, binding,vnode) { let that = vnode.context that[binding.arg](binding.value) } }) ...
分类:
其他好文 时间:
2021-06-10 17:34:26
阅读次数:
0
一、打包镜像并运行 1、项目代码打包上传服务器及相关配置文件ip设置 2、编写dockerfile Docker通过读取Dockerfile中的指令自动生成映像 Dockerfile 一般分为四部分:基础镜像信息、维护者信息、镜像操作指令和容器启动时执行指令,’#’ 为 Dockerfile 中的注 ...
分类:
其他好文 时间:
2021-06-10 17:33:19
阅读次数:
0
依赖的包为reflect。 Kind():返回最基础的类型。 type Kind uint const ( Invalid Kind = iota Bool Int Int8 Int16 Int32 Int64 Uint Uint8 Uint16 Uint32 Uint64 Uintptr Floa ...
分类:
其他好文 时间:
2021-06-09 15:36:10
阅读次数:
0
java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e ...
分类:
编程语言 时间:
2021-06-09 10:31:41
阅读次数:
0