-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Commit 9308764
Add a property to fail fast for unresolvable placeholders in @ConfigurationProperties
Introduce the `spring.configurationproperties.ignore-unresolvable-placeholders`
property to control whether an exception should be thrown when a property
placeholder `${...}` cannot be resolved.
Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>1 parent 5a97d2e commit 9308764
File tree
3 files changed
+47
-2
lines changed- spring-boot-project/spring-boot/src
- main
- java/org/springframework/boot/context/properties
- resources/META-INF
- test/java/org/springframework/boot/context/properties
3 files changed
+47
-2
lines changedLines changed: 16 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | - | ||
2 | + | ||
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 | + | ||
52 | 53 |
| |
53 | 54 |
| |
55 | + | ||
56 | + | ||
54 | 57 |
| |
55 | 58 |
| |
56 | 59 |
| |
| |||
68 | 71 |
| |
69 | 72 |
| |
70 | 73 |
| |
74 | + | ||
75 | + | ||
71 | 76 |
| |
72 | 77 |
| |
73 | 78 |
| |
| |||
191 | 196 |
| |
192 | 197 |
| |
193 | 198 |
| |
194 | - | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | ||
208 | + | ||
195 | 209 |
| |
196 | 210 |
| |
197 | 211 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
478 | + | ||
479 | + | ||
480 | + | ||
481 | + | ||
482 | + | ||
483 | + | ||
484 | + | ||
478 | 485 |
| |
479 | 486 |
| |
480 | 487 |
| |
|
Lines changed: 24 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 | + | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | ||
208 | + | ||
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | ||
213 | + | ||
214 | + | ||
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | ||
219 | + | ||
220 | + | ||
197 | 221 |
| |
198 | 222 |
| |
199 | 223 |
| |
|
0 commit comments