Correctness9 - SpotBugsExtensionForSpringFrameWork/CS5098 GitHub Wiki

Description

If a bean has no default constructor and Spring tries to instantiate it by looking for that constructor, this will result in a runtime exception; for example:

@Component
public class BeanA implements IBeanA {

    public BeanA(final String name) {
        super();
        System.out.println(name);
    }
}

Reference List

https://www.baeldung.com/spring-beancreationexception