Spring beans should be considered by “@ComponentScan”
the rule does not take into account the applicationContext.xml file which contains context:component-scan base-package="xxx.yyy.zzz"/>
For some project, we don’t use SpringBoot but XML config file so all classes with Spring annotation like “@ Service”, “@ Component” are in error because of this rule
Make sure to read this post before raising a thread here. You’re missing some of the required information (SonarQube version, a self-contained reproducer)