during the dependency injection, if spring fails to satisfy an injection point(constructor parameter, setter method parameter or field), it will throw exception indicating no qualifying bean definition was found.
you could signal spring dependency injector that it is ok to pass us null in the case of satisfying bean definition absence.
Nesta página do site você pode assistir ao vídeo on-line @Nullable or Optional for accepting nulls | Dependency Injection | Spring Tutorial |Ch1|E7| duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário STUDevLantern 18 Julho 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 654 vezes e gostou 7 espectadores. Boa visualização!