上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页
摘要: 服务熔断, 服务降级 参考: https://blog.csdn.net/pengjunlee/article/details/86688858 https://blog.csdn.net/llianlianpay/article/details/79768890 在介绍熔断机制之前, 需要理解微服 阅读全文
posted @ 2020-05-12 10:29 CyberPelican 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 04. Hystrix 一个方法对应一个@HystrixCommand 在Feign的基础上修改, 添加一个新模块, 复制拷贝服务提供者 pom.xml 添加依赖, 值得注意的是==@EnableHystrix不再该依赖中==, 而是在eureka client中 controller 主启动类 F 阅读全文
posted @ 2020-05-12 10:13 CyberPelican 阅读(75) 评论(0) 推荐(0) 编辑
摘要: @SpringbootApplication 注解 @SpringBootConfiguration | @Configuration | @Component ​ 实际作用就是将主启动类注入到ioc中 @EnableAutoConfiguration | @AutoConfigurationPac 阅读全文
posted @ 2020-05-11 22:11 CyberPelican 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Instead,when one {@code @Bean} method invokes another {@code @Bean} method in lite mode, the invocation is a standard Java method invocation; Spring d 阅读全文
posted @ 2020-05-11 21:31 CyberPelican 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 03. Feign Feign使用面向api编程, 来简化编程 ,默认使用==RoundRobbin==,可以不需要额外配置负载均衡 在ribbon的基础上修改 1. microsoft api 修改api的pom.xml添加 添加一个接口 2. 添加一个模块, 将consumer拷贝 添加依赖 修 阅读全文
posted @ 2020-05-11 14:08 CyberPelican 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 02. Ribbon 用于负载均衡 在eureka的基础上修改消费者模块 添加依赖 如果引入的 就可以不用引入ribbon依赖 修改yml 修改主启动类 修改ConfigBean 默认使用 类似于RoundRobbin 修改controller 如果不需要自定义Ribbon配置运行即可 自定义Rib 阅读全文
posted @ 2020-05-11 14:04 CyberPelican 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 01. eureka 单eureka Server 这里末尾的/表示访问的是一个目录(默认访问default.html或是index.html),也可以不加,如果不加表示首先当作servlet处理,如果找不到就当作目录处理 主启动类 provider application.yml controll 阅读全文
posted @ 2020-05-11 14:02 CyberPelican 阅读(173) 评论(0) 推荐(0) 编辑
摘要: groovy简单使用 一句话总结: ==groovy使用语法与js相似== 阅读全文
posted @ 2020-05-10 20:22 CyberPelican 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 转载: https://blog.csdn.net/lingyiwin/article/details/81008231 本地仓库是远程仓库的一个缓冲和子集,当你构建Maven项目的时候,首先会从本地仓库查找资源,如果没有,那么Maven会从远程仓库下载到你本地仓库。这样在你下次使用的时候就不需要从 阅读全文
posted @ 2020-05-10 09:10 CyberPelican 阅读(3052) 评论(0) 推荐(0) 编辑
摘要: @configuration(proxyBeanMethods = false) Specify whether {@code @Bean} methods should get proxied in order to enforce bean lifecycle behavior, e.g. to 阅读全文
posted @ 2020-05-07 23:45 CyberPelican 阅读(5405) 评论(0) 推荐(1) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 29 下一页