上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1.创建nacos数据库,数据库初始化sql在nacos安装包下conf/nacos-mysql.sql 2.修改conf/cluster.conf配置文件 127.0.0.1:8845127.0.0.1.8846127.0.0.1.8847 3.修改conf/application.propert 阅读全文
posted @ 2022-05-10 15:58 疯靡 阅读(594) 评论(0) 推荐(0)
摘要: ./startup.cmd -m standalone 阅读全文
posted @ 2022-05-10 14:59 疯靡 阅读(19) 评论(0) 推荐(0)
摘要: 1.Nacos配置列表增加配置。 2.DataId命名方式服务名-环境名称 userservice-dev.yaml,共享配置文件userservice.yaml,配置文件优先级 dev > 共享 > 本地。 3.代码中增加bootstrap.yml,application.yml配置文件去掉相同的 阅读全文
posted @ 2022-05-10 10:56 疯靡 阅读(614) 评论(0) 推荐(0)
摘要: ribbon: eager-load: enabled: true # 开启饥饿加载 clients: - userservice 阅读全文
posted @ 2022-05-09 15:26 疯靡 阅读(35) 评论(0) 推荐(0)
摘要: 1.在代码中加入@loadbalanced注解 @Configuration public class RestTemplateConfig { @Bean @LoadBalanced public RestTemplate restTemplate(RestTemplateBuilder buil 阅读全文
posted @ 2022-05-09 15:18 疯靡 阅读(191) 评论(0) 推荐(0)
摘要: package com.yjw.orderService.config; import org.springframework.boot.web.client.RestTemplateBuilder; import org.springframework.context.annotation.Bea 阅读全文
posted @ 2022-04-06 16:55 疯靡 阅读(82) 评论(0) 推荐(0)
摘要: https://www.bookstack.cn/read/spring-cloud-docs/docs-project-SpringCloudConfig.md 阅读全文
posted @ 2022-03-31 10:52 疯靡 阅读(134) 评论(0) 推荐(0)
摘要: 1.Spring cloud 2.Spring boot 3.Spring cloud Alibaba 4.注册中心 Nacos 5.服务调用 Ribbon、Loadbalancer、OpenFeigin 6.服务降级 Sentinel 7.服务网关 Gataway 8.服务配置 Nacos 9.服 阅读全文
posted @ 2022-03-31 10:39 疯靡 阅读(50) 评论(0) 推荐(0)
摘要: 1.查看spring官网,目前最新的稳定版本是2021.0.1 (GA代表稳定的发布版) 2.点击上图中的Referrence Doc查看兼容的spring boot版2.6.3 3.Spring Cloud Alibaba 2021.0.1.0 阅读全文
posted @ 2022-03-31 10:15 疯靡 阅读(265) 评论(0) 推荐(0)
摘要: 官网地址 https://start.spring.io/actuator/info { "git": { "branch": "881e633a6a33776174ee1e0274016acc0715f7c7", "commit": { "id": "881e633", "time": "2022 阅读全文
posted @ 2022-03-31 10:09 疯靡 阅读(146) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页