-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Commit 0d1eef3
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 06f66a8 commit 0d1eef3
File tree
3 files changed
+46
-1
lines changed- core/spring-boot/src
- main
- java/org/springframework/boot/context/properties
- resources/META-INF
- test/java/org/springframework/boot/context/properties
3 files changed
+46
-1
lines changedLines changed: 15 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
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 | |
---|---|---|---|
| |||
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | ||
203 | + | ||
204 | + | ||
205 | + | ||
206 | + | ||
207 | + | ||
208 | + | ||
209 | + | ||
210 | + | ||
211 | + | ||
212 | + | ||
189 | 213 |
| |
190 | 214 |
| |
191 | 215 |
| |
|
0 commit comments