-
Notifications
You must be signed in to change notification settings - Fork 40.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The error message when a wildcard directory location does not match any files is misleading #26415
Comments
As described here, your import is instructing Spring Boot to import files from every directory in We might be able to improve the error a bit as I agree that it's not very clear at the moment. |
That behavior seems odd to me. It's not would I would expect, and its not terribly clear to me in the documentation that only files in subdirectories would be picked up. So if I had files in the top level director and in subdirectories I would have to do this?
In addition to improving the error I would also think we might be able to make the docs a bit clearer on the behavior. |
Yes, that's right. If The documentation already reads quite clearly to me, particularly this sentence:
Reading that, it's clear to me that that |
OK well I guess it was just not obvious to me. Thanks for updating the error message! |
In my app's
application.yaml
I haveThe directory
/Users/ryanjbaxter/git-repos/ryanjbaxter/spring-one-tour-2021/gateway-s1p-2018/config-files
looks like thisFor some reason Boot thinks the directory is empty and then throws this exception
The text was updated successfully, but these errors were encountered: