IDEA加入注解bean导入失败
时间: 2020-06-28来源:博客园
前景提要
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 显示帮助
使用"Ctrl+Enter"可进行快捷提交,评论支持部分 Markdown 语法:[link](http://example.com) _italic_ **bold** `code`。
< > 分享
分享您的问题
所有回答(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 编辑文本 预览 上传图片
Ctrl+Enter键快速提交
清除回答草稿
您需要 登录 以后才能回答,未注册用户请先 注册 。

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行