Skip to content

Configuration classes aren't loaded when use spring.main.lazy-initialization=true property #22400

@nilknow

Description

@nilknow

I use spring.main.lazy-initialization=true to speed up Spring Boot 2.2.8.RELEASE startup. But I found that, configuration class which are annotated by @Configuration are not loaded. Is it a feature? I cannot find any information about this. Is there any way I can use to use configuration class after setting beans to lazy initialized?

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions