-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
FileNotFoundException is thrown when using ConfigurationPropertiesScan with Spring Context 6.2.1 #34216
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Comments
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This turned out to be related but not quite a duplicate, so I'll individually schedule this for 6.2.2 (also for potential follow-ups). |
@bajibalu this is available in the latest 6.2.2 snapshot now, please give it an early try if you have the chance (before 6.2.2 becomes generally available on Thursday). |
Good to hear! Thanks for the immediate feedback, @bajibalu. |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Spring Boot version:
3.4.1
Spring Core version:
6.2.1
I am getting
FileNotFoundException: JAR entry my/app/config/ not found in my-app.jar!/BOOT-INF/lib/dependency.jar
when using
@ComponentScan
and@ConfigurationPropertiesScan
annotations and having a dependency.jar that contains common parent package that matches ConfigurationPropertiesScan.basePackages value.This exception is thrown when PathMatchingResourcePatternResolver takes resources from
rootDirCache
that match common parent directory, updates the resource path and tries to access a directory that does not exist in that jar file.I have a
dependency.jar
in my application that containsmy.app
package and the Application class configured like below.In this case,
my.app
as key anddependency.jar!/my/app
as value is added torootDirCache
while processing the @componentscan annotationdependency.jar!/my/app/config
which does not present in that jar file.The text was updated successfully, but these errors were encountered: