Fixes wrong prints of @ConditionalOnBean for negative matches in Conditions Evaluation Report by changing a hardcoded ConditionalOnBean.class for annotationType in org.springframework.boot.autoconfigure.condition.OnBeanCondition.Spec<A>
message methods.
It also changes Class<?> annotationType
for Class<? extends Annotation> annotationType
for type safety and to be able to use org.springframework.boot.autoconfigure.condition.ConditionMessage
forCondition method.
Fixes #19169
Comment From: jcordoba95
Hello @snicoll , sorry for the delay on the test. I have added the test to validate the bug fix. If there is anything else needed, please let me know :)
Comment From: snicoll
@jcordoba95 thank you for making your first contribution to Spring Boot.