Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1c42598

Browse files
Update readme.md
1 parent 20e81ac commit 1c42598

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed

‎3.centralized-configuration-github/readme.md

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,101 @@ GET -> `http://localhost:8888/s2rates/default/main`
7272
]
7373
}
7474
```
75+
----------------
76+
- After adding more granular paths for perf
77+
78+
application.yml
79+
80+
```yml
81+
server:
82+
port: 8888
83+
84+
#spring:
85+
# cloud:
86+
# config:
87+
# server:
88+
# git:
89+
# uri: https://github.com/javaHelper/pluralsight-spring-cloudconfig-wa-tolls
90+
# default-label: main
91+
# search-paths:
92+
# - station*
93+
94+
spring:
95+
cloud:
96+
config:
97+
server:
98+
git:
99+
uri: https://github.com/rseroter/pluralsight-spring-cloudconfig-wa-tolls-2
100+
search-paths:
101+
- station*
102+
repos:
103+
perf:
104+
pattern: '*/perf'
105+
uri: https://github.com/rseroter/pluralsight-spring-cloudconfig-wa-tolls-perf-2
106+
search-paths:
107+
- 'station*'
108+
```
109+
110+
GET -> `http://localhost:8888/s1rates/perf/main`
111+
112+
```json
113+
{
114+
"name": "s1rates",
115+
"profiles": [
116+
"perf"
117+
],
118+
"label": "main",
119+
"version": "e9ede2065766443f11b7331d5e6a482b04f38746",
120+
"state": null,
121+
"propertySources": [
122+
{
123+
"name": "https://github.com/rseroter/pluralsight-spring-cloudconfig-wa-tolls-perf-2/station1/s1rates.properties",
124+
"source": {
125+
"rate": "5",
126+
"lanecount": "5"
127+
}
128+
},
129+
{
130+
"name": "https://github.com/rseroter/pluralsight-spring-cloudconfig-wa-tolls-perf-2/application.properties",
131+
"source": {
132+
"rate": "1.55",
133+
"tollstart": "05:00",
134+
"tollstop": "22:00",
135+
"lanecount": "0"
136+
}
137+
}
138+
]
139+
}
140+
```
141+
142+
GET -> http://localhost:8888/s3rates/perf/main
143+
144+
```json
145+
{
146+
"name": "s3rates",
147+
"profiles": [
148+
"perf"
149+
],
150+
"label": "main",
151+
"version": "e9ede2065766443f11b7331d5e6a482b04f38746",
152+
"state": null,
153+
"propertySources": [
154+
{
155+
"name": "https://github.com/rseroter/pluralsight-spring-cloudconfig-wa-tolls-perf-2/station3/s3rates.properties",
156+
"source": {
157+
"rate": "9.10",
158+
"lanecount": "8"
159+
}
160+
},
161+
{
162+
"name": "https://github.com/rseroter/pluralsight-spring-cloudconfig-wa-tolls-perf-2/application.properties",
163+
"source": {
164+
"rate": "1.55",
165+
"tollstart": "05:00",
166+
"tollstop": "22:00",
167+
"lanecount": "0"
168+
}
169+
}
170+
]
171+
}
172+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /