Skip to content

PathMatchingResourcePatternResolver should not log directory-skip messages at info level #33954

@CHOICORE

Description

@CHOICORE

I started seeing unexpected logs after upgrading Spring Boot from version 3.3.4 to 3.4.0.

Skipping search for files matching pattern [**/*.class]: directory [/Users/core/workspace/me/projects/samples/test/dependencies/build/classes/java/main/me/choicore/samples/test/api] does not exist
rootPorject
ㄴ applicaion-module
    ㄴ src
        ㄴmain
            ㄴ java
                ㄴ me/choicore/samples/test
                    ㄴ api
                        ㄴ Application.java (entrypoint)
ㄴ dependencies-module
    ㄴ src
        ㄴ main
            ㄴ java
                ㄴ me/choicore/samples/test
                    ㄴ dependencies
...
image

The project is set up as a multi-module structure, and as shown in the image, the entry point is located under the API package.

image

After analyzing line 695 of PathMatchingResourcePatternResolver.class, I found a process that creates sub-resources. While the dependencies-module doesn't contain a package named 'api', related logs are being generated.
Although the application starts up normally, these logs keep appearing. If this is intended behavior, shouldn't we consider adjusting the logging level

If analysis is needed, I will attach a test project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: supersededAn issue that has been superseded by anothertype: regressionA bug that is also a regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions