Browse Source

Merge branch '3.5.x' into 4.0.x

Closes gh-49287
pull/49582/head
Stéphane Nicoll 4 weeks ago
parent
commit
eff9ca0af2
  1. 2
      documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt

2
documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/application/customizetheenvironmentorapplicationcontext/MyEnvironmentPostProcessor.kt

@ -37,7 +37,7 @@ class MyEnvironmentPostProcessor : EnvironmentPostProcessor { @@ -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) {

Loading…
Cancel
Save