Skip to content
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

ScanSpringApplication: Conditional bean execution #1070

Open
KKuehlem opened this issue Oct 9, 2024 · 0 comments
Open

ScanSpringApplication: Conditional bean execution #1070

KKuehlem opened this issue Oct 9, 2024 · 0 comments

Comments

@KKuehlem
Copy link

KKuehlem commented Oct 9, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant