I am trying to implement a Spring condition that will load my bean only if there is no other beans for a certain class. The desired behavior is similar to "@ConditionalOnMissingBean" but without using spring-boot.
I am using Spring versions 5.3.13.
Is that possible? thanks.