79129228

Date: 2024-10-26 18:40:03
Score: 1.5
Natty:
Report link

One possible reason is that there are two classes (e.g. HomeController) with the same name but in different packages or multiple instances for one class, both of them will use the default name (e.g. homeController), and then an exception happens. If this is the case, then @Component(beanName) + @Qualifier(beanName) would be a possible solution.

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex