1
1
/*
2
- * Copyright 2012-2024 the original author or authors.
2
+ * Copyright 2012-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
43
43
import org .springframework .core .env .EnumerablePropertySource ;
44
44
import org .springframework .core .env .Environment ;
45
45
import org .springframework .core .env .PropertySource ;
46
+ import org .springframework .core .io .FileSystemResource ;
46
47
import org .springframework .core .io .InputStreamSource ;
47
- import org .springframework .core .io .PathResource ;
48
48
import org .springframework .core .io .Resource ;
49
49
import org .springframework .util .Assert ;
50
50
import org .springframework .util .FileCopyUtils ;
@@ -176,7 +176,7 @@ private static final class PropertyFile {
176
176
177
177
private final Path path ;
178
178
179
- private final PathResource resource ;
179
+ private final FileSystemResource resource ;
180
180
181
181
private final Origin origin ;
182
182
@@ -186,7 +186,7 @@ private static final class PropertyFile {
186
186
187
187
private PropertyFile (Path path , Set <Option > options ) {
188
188
this .path = path ;
189
- this .resource = new PathResource (path );
189
+ this .resource = new FileSystemResource (path );
190
190
this .origin = new TextResourceOrigin (this .resource , START_OF_FILE );
191
191
this .autoTrimTrailingNewLine = options .contains (Option .AUTO_TRIM_TRAILING_NEW_LINE );
192
192
this .cachedContent = options .contains (Option .ALWAYS_READ ) ? null
0 commit comments