ERROR o.s.web.servlet.DispatcherServlet - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.data.redis.core.RedisTemplate com.qiyu.common.base.BaseController.redisTemplate; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.data.redis.core.RedisTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}




每日异常



该异常已解决,导致原因是因为我们的项目 引用了两个common ,这就导致我们会有两个 redis的maven依赖!

所以,这是依赖引用不当造的异常!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-28
  • 2021-09-02
  • 2021-08-03
  • 2019-11-29
  • 2022-01-11
猜你喜欢
  • 2018-08-31
  • 2021-08-10
  • 2021-09-03
  • 2021-05-06
  • 2022-12-23
  • 2022-01-06
  • 2021-09-13
相关资源
相似解决方案