-
Notifications
You must be signed in to change notification settings - Fork 40.2k
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
Allow @ConditionalOn to work on @Components #17655
Comments
@xenoterracide How are your service beans being imported? I believe that Spring Framwork's |
imported? I presume you're asking how I'm injecting them... (otherwise just the normal
|
@xenoterracide using conditions on components identified by classpath scanning will not work. You should really use those on auto-configurations (see the note in the javadoc that Phil already linked). Ignoring the fact using such conditions that way is not supported, I don't know why your project fails the way you've described but it looks like a different problem to me. If you share a small sample we can have a look. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I get this result
this does work... but it's so much more verbose
it would be nice if we could use
@ConditionalOnMissingBean
and other@Conditional
's on@Component
's.P.S. I can create a full demo project if necessary.
The text was updated successfully, but these errors were encountered: