1. svn目錄下的文件結構
圖像 1.png
分為三個目錄dev為開發環境,test為測試環境,product為生產環境
2. config server配置
spring:
application:
name: etecsa-config-server
#=============================svn自動刷新配置===================================
#使用svn作為配置倉庫,必須顯示聲明profiles.active=subversion,不然還是用的git
cloud:
config:
server:
svn:
search-paths: test
uri: svn://10.1.80.111/config-server #配置svn倉庫地址
username: guoyongqiang #訪問svn倉庫的用戶名
password: 123456 #訪問svn倉庫的用戶密碼
default-label: trunk
bus:
enabled: true
trace:
enabled: true
profiles:
active: subversion
#=============================消息總線mq配置===================================
rabbitmq:
host: 10.1.20.52
port: 5672
username: root
password: 123456
3. config client配置
spring:
application:
name: asleep-alpha
cloud:
config:
name: {application}
label:
discovery:
enabled: false
service-id: etecsa-config-server
fail-fast: true
uri: http://10.1.20.15:8074 #配置中心的地址;也可以通過服務名
bus:
enabled: true
trace:
enabled: true
其余配置放入svn倉庫中即可
PS:
springboot啟動日志 CONDITION EVALUATION DELTA 去除問題
spring:
devtools:
restart:
log-condition-evaluation-delta: false