diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java index becea918c40..521b275a098 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2024 the original author or authors. + * Copyright 2012-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,8 +43,8 @@ import org.springframework.boot.origin.TextResourceOrigin.Location; import org.springframework.core.env.EnumerablePropertySource; import org.springframework.core.env.Environment; import org.springframework.core.env.PropertySource; +import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.InputStreamSource; -import org.springframework.core.io.PathResource; import org.springframework.core.io.Resource; import org.springframework.util.Assert; import org.springframework.util.FileCopyUtils; @@ -176,7 +176,7 @@ public class ConfigTreePropertySource extends EnumerablePropertySource imp private final Path path; - private final PathResource resource; + private final FileSystemResource resource; private final Origin origin; @@ -186,7 +186,7 @@ public class ConfigTreePropertySource extends EnumerablePropertySource imp private PropertyFile(Path path, Set