Skip to content

ScanSpringApplication: Conditional bean execution #1070

Open
@KKuehlem

Description

@KKuehlem

Hi,
I am using the scanSpringApplication option together with generateSpringApplicationClient to generate rest clients. I noticed with scanSpringApplication all @Beans are executed which is too much in my case. Would it be possible to add an option that beans are not executed by default when using scanSpringApplication or some way to control which beans should be executed and which not?

My current workaround is to look whether the main method was executed or not which works but is not very ideal.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions