Commit 29540ce8 by tangyi

配置中心增加rabbitMq配置

parent 2c45cb04
# bootstrap.yml文件中的内容不能放到application.yml中,否则config部分无法被加载 # bootstrap.yml文件中的内容不能放到application.yml中,否则config部分无法被加载
# 因为config部分的配置先于application.yml被加载,而bootstrap.yml中的配置会先于application.yml加载 # 因为config部分的配置先于application.yml被加载,而bootstrap.yml中的配置会先于application.yml加载
server: server:
port: 8769 port: 8769
spring: spring:
...@@ -20,4 +19,9 @@ spring: ...@@ -20,4 +19,9 @@ spring:
cloud: cloud:
consul: consul:
host: ${CONSUL_HOST:localhost} host: ${CONSUL_HOST:localhost}
port: ${CONSUL_PORT:8500} port: ${CONSUL_PORT:8500}
\ No newline at end of file rabbitmq:
host: ${RABBIT_HOST:localhost}
port: ${RABBIT_PORT:5672}
username: guest
password: guest
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment