首页新闻找找看学习计划

IDEA加入注解bean导入失败

0
[待解决问题]

2020-06-28T17:58:39.848+08:00 WARN ctm01nlmg-web.ctm01nlmg-web [main] [o.s.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext:551] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'caseTypeController': Unsatisfied dependency expressed through field 'caseTypeService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'caseTypeServiceImpl': Unsatisfied dependency expressed through field 'hashOperations'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springframework.data.redis.core.HashOperations<java.lang.String, java.lang.String, java.lang.Object>' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2020-06-28T17:58:40.096+08:00 ERROR ctm01nlmg-web.ctm01nlmg-web [main] [org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter:42] -


APPLICATION FAILED TO START


一直报这个错,麻烦看下,感谢。

麻烦看下上述问题,万分感谢

张小仙儿的主页 张小仙儿 | 菜鸟二级 | 园豆:249
提问于:2020-06-28 19:02
< >
分享
所有回答(1)
0

一是applicationContext.xml看看扫描注解写对没。二是注解贴对地方没。最后一种就是极其危险的写法,Autowired(required=false)

kidnap | 园豆:199 (初学一级) | 2020-06-29 00:32

springBoot还需要写applicationContext.xml吗?大神方便加QQ1906075739远程指导一下吗?

支持(0) 反对(0) 张小仙儿 | 园豆:249 (菜鸟二级) | 2020-06-29 09:47
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册