Hi all,
I had a following scenario which lead me to conclusion that there's a bug in how springboot handles those two annotations mentioned in the title.
- Let's have an interface A
- Let's create implementation B of interface A.
- Let's create a Bean of A (return B) and annotate it with ConditionalOnMissingBean (just a default bean implementation for when the user does not define his own implementation, kind of like a fallback)
- Let's create a RestController with annotation ConditionalOnBean(A)
- Endpoint is not instantiated which I believe it should
Cheers
Hi all,
I had a following scenario which lead me to conclusion that there's a bug in how springboot handles those two annotations mentioned in the title.
Cheers