mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-04 00:09:01 +00:00
Align message in MyEnvironmentPostProcessor code sample
See gh-49282 Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
This commit is contained in:
committed by
Stéphane Nicoll
parent
9138ae29d3
commit
4b2efca338
+1
-1
@@ -37,7 +37,7 @@ class MyEnvironmentPostProcessor : EnvironmentPostProcessor {
|
||||
}
|
||||
|
||||
private fun loadYaml(path: Resource): PropertySource<*> {
|
||||
Assert.isTrue(path.exists()) { "Resource $path does not exist" }
|
||||
Assert.isTrue(path.exists()) { "'path' [$path] must exist" }
|
||||
return try {
|
||||
loader.load("custom-resource", path)[0]
|
||||
} catch (ex: IOException) {
|
||||
|
||||
Reference in New Issue
Block a user