上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: SpringBoot整合Apollo 官网地址: https://github.com/ctripcorp/apollo/wiki/Java%E5%AE%A2%E6%88%B7%E7%AB%AF%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97 关键注解 @ApolloConf 阅读全文
posted @ 2020-07-07 23:21 SweetBaby。 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Gateway geteway三大核心 路由 断言 过滤 依赖 <!--springcloud gateway--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter- 阅读全文
posted @ 2020-07-06 01:10 SweetBaby。 阅读(2006) 评论(0) 推荐(0) 编辑
摘要: Hystrix快速整合: ​ Hystrix在服务端和客户端都可以进行降级、熔断、限流 POM依赖 <!--netflix-hystrix--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring- 阅读全文
posted @ 2020-07-06 00:44 SweetBaby。 阅读(522) 评论(0) 推荐(0) 编辑
摘要: OpenFeign进行服务调用 ​ Feign自带负载均衡配置项,OpenFeign最主要两个注解: 在主启动类似添加:@EnableFeignClients 主业务逻辑接口 + @FeignClient配置调用provide服务 Rest微服务工程构建 1、客户端调用Module模块 ​ 新建cl 阅读全文
posted @ 2020-07-04 00:54 SweetBaby。 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Eureka Client注册到Eureka Server 可以通过RestTemplate实现RPC调用 一定要@loadBalance注解修饰的restTemplate才能实现服务名的调用,没有修饰的restTemplate是没有该功能的 Rest微服务工程构建 1、微服务提供者Module模块 阅读全文
posted @ 2020-07-03 02:04 SweetBaby。 阅读(315) 评论(0) 推荐(0) 编辑
摘要: Eureka Client注册到Eureka Server 注册到Eureka Server主要是三个: maven依赖 <!--eureka client--> <dependency> <groupId>org.springframework.cloud</groupId> <artifactI 阅读全文
posted @ 2020-07-03 01:17 SweetBaby。 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 单机Eureka Server 1、建Muducl ​ 新建一个maven项目,cloud-eureka-server7001 ​ 修改本机ip映射:找到C:\Windows\System32\drivers\etc\hosts文件 127.0.0.1 eureka7002.com 127.0.0. 阅读全文
posted @ 2020-07-03 00:40 SweetBaby。 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 官方文档:https://github.com/ctripcorp/apollo/wiki/Quick-Start 1、环境准备 JDK 1.8 + java -version Mysql 5.6.5+ mysql -h127.0.0.1 -uroot -p123456 SHOW VARIABLES 阅读全文
posted @ 2020-06-24 16:27 SweetBaby。 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 1、依赖 ​ POM <!-- spring boot redis 缓存引入 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifa 阅读全文
posted @ 2020-06-23 09:49 SweetBaby。 阅读(787) 评论(0) 推荐(0) 编辑
摘要: 自动化配置 1、redis自动化配置 ​ 源码分析:RedisAutoConfiguration @Configuration( proxyBeanMethods = false ) @ConditionalOnClass({RedisOperations.class}) @EnableConfig 阅读全文
posted @ 2020-06-23 01:22 SweetBaby。 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页