Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip searching of nonexistent directory in PathMatchingResourcePatter…
…nResolver Prior to this commit, when PathMatchingResourcePatternResolver processed a `file:` pattern (for example, `file:/app-config/**`) for a `rootPath` that did not exist in the filesystem, the resolver attempted to search the directory and logged a WARNING message similar to the following when it failed to do so. Failed to search in directory [/app-config/] for files matching pattern [**]: java.nio.file.NoSuchFileException: /app-config/ To avoid unnecessary attempts to search a nonexistent directory, PathMatchingResourcePatternResolver now skips searching of a nonexistent directory and preemptively logs an INFO message similar to the following. Skipping search for files matching pattern [**]: directory [/app-config] does not exist Closes gh-31111
- Loading branch information