In my case, the error was caused by using both field injection with the @Autowired annotation and constructor injection for the same dependency. This conflict led to issues during the bean creation process
@Autowired