org.springframework.boot
spring-boot-starter-actuator
添加配置文件application-amqp.yml,主要是添加了RabbitMQ的配置及暴露了刷新配置的Actuator端点;
server:
port: 8904
spring:
application:
name: config-server
cloud:
config:
server:
git:
配置存储配置信息的Git仓库
uri: https://gitee.com/JourWon/springcloud-config.git
username: JourWon
password: 123456
开启启动时直接从git获取配置
clone-on-start: true
获取子目录下的配置
search-paths: ‘{application}’
rabbitmq相干配置
rabbitmq:
host: localhost
port: 5672
username: guest
password: guest
eureka:
client:
register-with-eureka: true
fetch-registry: true
service-url:
defaultZone: http://localhost:8001/eureka/