spring cloud bus + kafka 설정 열 업데이트 실현
의존:
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.0.6.RELEASE
com.hcloud
config
0.0.1-SNAPSHOT
config
config zone
1.8
Finchley.SR2
org.springframework.cloud
spring-cloud-config-server
org.springframework.cloud
spring-cloud-starter-netflix-eureka-client
org.springframework.boot
spring-boot-starter-actuator
org.springframework.boot
spring-boot-starter-test
test
org.springframework.cloud
spring-cloud-starter-bus-kafka
org.springframework.cloud
spring-cloud-starter-stream-kafka
org.springframework.cloud
spring-cloud-bus
org.springframework.cloud
spring-cloud-config-monitor
org.springframework.cloud
spring-cloud-dependencies
${spring-cloud.version}
pom
import
org.springframework.boot
spring-boot-maven-plugin
spring-snapshots
Spring Snapshots
https://repo.spring.io/snapshot
true
spring-milestones
Spring Milestones
https://repo.spring.io/milestone
spring-snapshots
Spring Snapshots
https://repo.spring.io/snapshot
true
spring-milestones
Spring Milestones
https://repo.spring.io/milestone
:
server:
port: 8088
eureka:
client:
service-url:
defaultZone: http://10.130.216.104:8761/eureka
instance:
prefer-ip-address: true
instance-id: ${spring.cloud.client.ipAddress}:${server.port}
spring:
application:
name: config-server
cloud:
config:
server:
git:
uri: http://gitlab.it.xxx.com/xxx/config-repo.git
username: xxx
password: xxx
basedir: ./gitbasedir
client:
ipAddress: 10.141.6.1
bus:
refresh:
enabled: true
kafka:
bootstrap-servers: 10.130.216.101:8013
consumer:
group-id: config-dev
management:
endpoints:
web:
exposure:
include: '*'
client:
org.springframework.cloud
spring-cloud-starter-bus-kafka
spring:
application:
name: scrmzqs
cloud:
config:
profile: local
discovery:
enabled: true
service-id: config-server
bus:
refresh:
enabled: true
client:
ipAddress: 10.141.6.1
kafka:
bootstrap-servers: 10.130.216.101:8013
eureka:
client:
service-url:
defaultZone: http://10.130.216.104:8761/eureka/
instance:
prefer-ip-address: true
instance-id: ${spring.cloud.client.ipAddress}:${server.port}
management:
endpoints:
web:
exposure:
include: '*'
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
다양한 언어의 JSONJSON은 Javascript 표기법을 사용하여 데이터 구조를 레이아웃하는 데이터 형식입니다. 그러나 Javascript가 코드에서 이러한 구조를 나타낼 수 있는 유일한 언어는 아닙니다. 저는 일반적으로 '객체'{}...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.