Spring Autowiring Service doesn't work in my Controller

前端 未结 7 1976
时光说笑
时光说笑 2021-02-04 13:43

i\'ve problems in order to autowire a service in my controller. I\'ve this error:

org.springframework.beans.factory.BeanCreationException: Error creating bean wi         


        
相关标签:
7条回答
  • 2021-02-04 14:35

    You can use the @Qualifier annotation as follows:

    @Autowired
    @Qualifier("userService")
    private UserService userService;
    
    0 讨论(0)
提交回复
热议问题