springboot集群下的Apollo配置

简介: springboot集群下的Apollo配置


image.png

1.场景

在微服务中,我们可能会搭建springboot的集群项目,肯定的是每个项目的端口号是不同的 (或许还有其他配置不同),但是每个项目的app.id是相同的,那么就需要集群配置。

2.apollo配置

image.png

image.png

添加配置如上,不具体描述。

3.spring boot配置

apollo:
  cluster: 项目名-A (上图配置的)
  meta: http://172.0.0.1:8080
  bootstrap:
    enabled: true
    eagerLoad:
      enabled: true


相关文章
springboot集成ElasticSearch(支持集群)
springboot集成ElasticSearch(支持集群)
1266 0
|
NoSQL Java Redis
springboot之RedisTemplate的访问单机,哨兵,集群模式
以上是配置RedisTemplate以连接到单机、哨兵和集群模式的示例。在实际应用中,还可以根据需求配置连接池、序列化方式、超时等其他参数。
1170 0
|
Kubernetes Cloud Native Devops
云原生技术落地实现之二KubeSphere DevOps 系统在 Kubernetes 集群上实现springboot项目的自动部署和管理 CI/CD (2/2)
云原生技术落地实现之二KubeSphere DevOps 系统在 Kubernetes 集群上实现springboot项目的自动部署和管理 CI/CD (2/2)
463 1
|
存储 JSON NoSQL
Redis+SpringBoot企业版集群实战------【华为云版】(下)
Redis+SpringBoot企业版集群实战------【华为云版】
376 1
|
NoSQL Redis 数据安全/隐私保护
Redis+SpringBoot企业版集群实战------【华为云版】(中)
Redis+SpringBoot企业版集群实战------【华为云版】
457 1
|
存储 NoSQL Redis
Redis+SpringBoot企业版集群实战------【华为云版】(上)
Redis+SpringBoot企业版集群实战------【华为云版】
345 0
|
NoSQL Java Redis
Springboot Jedis Redis集群过期时间expireAt设置问题
Springboot Jedis Redis集群过期时间expireAt设置问题
489 0
|
消息中间件 Java Spring
搭建高可用rabbitmq集群及spring boot实现集群配置
搭建高可用rabbitmq集群及spring boot实现集群配置
946 0
|
Java 程序员
SpringBoot整合ES集群报错集锦
SpringBoot整合ES集群报错集锦
278 0
|
存储 NoSQL Java
使用SpringBoot整合redis多主多从集群
使用SpringBoot整合redis多主多从集群
824 0