Null bean value exception message confusing [SPR-16961] #21499
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: waiting-for-triage
An issue we've not yet triaged or decided on
Dave Syer opened SPR-16961 and commented
When a
@Bean
method returns null it becomes non-autowirable, but the exception message only says that there are "no beans" of the required type. In fact there was one, but it was null, and that would be more useful information.Affects: 5.0.7
Reference URL: spring-projects/spring-boot#13531
Issue Links:
The text was updated successfully, but these errors were encountered: