Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-microservice-exam
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汪想
spring-microservice-exam
Commits
29540ce8
Commit
29540ce8
authored
Mar 31, 2019
by
tangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置中心增加rabbitMq配置
parent
2c45cb04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
bootstrap.yml
config-service/src/main/resources/bootstrap.yml
+7
-3
No files found.
config-service/src/main/resources/bootstrap.yml
View file @
29540ce8
# bootstrap.yml文件中的内容不能放到application.yml中,否则config部分无法被加载
# 因为config部分的配置先于application.yml被加载,而bootstrap.yml中的配置会先于application.yml加载
server
:
port
:
8769
spring
:
...
...
@@ -20,4 +19,9 @@ spring:
cloud
:
consul
:
host
:
${CONSUL_HOST:localhost}
port
:
${CONSUL_PORT:8500}
\ No newline at end of file
port
:
${CONSUL_PORT:8500}
rabbitmq
:
host
:
${RABBIT_HOST:localhost}
port
:
${RABBIT_PORT:5672}
username
:
guest
password
:
guest
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment