摘要: 微信:zmjyyg (一对一讲解) 原理:当service-A 中的接口获取service-B中的请求时,如果service-B响应timeout, 此时请求会进入service-A 中设置的断路由中。 service-A中: @FeignClient(name = "eureka-client-f 阅读全文
posted @ 2018-08-20 10:15 James-Y-G-Yin 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 微信:zmjyyg (一对一讲解) 1 要使用springcloud config client, 且在dev,test,pro等之间切换环境。 那么就不能使用application.properties. 而是要用 bootstrap.properties [该文件中不仅含有读取config se 阅读全文
posted @ 2018-08-16 15:51 James-Y-G-Yin 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 微信:zmjyyg (一对一讲解) Data Redis提供四个Redis客户端实现的连接工厂 JedisConnectionFactory JredisConnectionFactory LettuceConnectionFactory (springcloud 2.0.4) SrpConnect 阅读全文
posted @ 2018-08-13 15:33 James-Y-G-Yin 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-08-08 11:52 James-Y-G-Yin 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 微信:zmjyyg (一对一讲解) Spring Cloud常用模块的功能: (1)Eureka:Netflix公司开发的框架,用于微服务的注册和发现,提供相似功能的还可以使用Zookeeper,但官方推荐使用Eureka。 <!--maven依赖配置--> <dependency><groupId 阅读全文
posted @ 2018-07-31 09:34 James-Y-G-Yin 阅读(527) 评论(0) 推荐(0) 编辑
摘要: https://segmentfault.com/a/1190000004316686 阅读全文
posted @ 2018-07-30 09:53 James-Y-G-Yin 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 1.配置 # eureka.client.registerWithEureka :表示是否将自己注册到Eureka Server,默认为true。由于当前这个应用就是Eureka Server,故而设为false # eureka.client.fetchRegistry :表示是否从Eureka 阅读全文
posted @ 2018-07-23 15:50 James-Y-G-Yin 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 微信:zmjyyg (一对一讲解) static和templates部分参考博客:https://blog.csdn.net/wangb_java/article/details/71775637 热部署参考博客:https://www.cnblogs.com/cx-code/p/8686453.h 阅读全文
posted @ 2018-07-04 10:21 James-Y-G-Yin 阅读(5954) 评论(0) 推荐(0) 编辑
摘要: vim时vi的升级版 基本上vi可以分为三种状态,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode) 增:按i,进行编辑,输入文字 删:按Esc,进入命令模式,dd删除整行,x/Delete删除一个字母 跳转:按Esc,进入命令模 阅读全文
posted @ 2018-06-26 10:36 James-Y-G-Yin 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1.使用镜像(提高速度)安装或者升级tensorflow不加镜像: pip install tensorflow(速度很慢,而且会失败)安装:pip install tensorflow -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host 阅读全文
posted @ 2018-06-26 09:52 James-Y-G-Yin 阅读(108) 评论(0) 推荐(0) 编辑