首页 > 其他 > 详细

隐蔽的bean没有定义错误:No bean named 'SysJdTypeServiceImpl' is defined

时间:2019-08-26 19:59:05      阅读:95      评论:0      收藏:0      [点我收藏+]

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named ‘SysJdTypeServiceImpl‘ is defined

bean没有定义错误常见的原因有:

1、对应要注入的实现类没有 加注解,如dao层 @Repository 如service层 @Service

2、Eclipse等开发环境要clean

还有一种在一边边看注解一边边clean之后还是报错

3、大小写

ref="sysJdTypeServiceImpl"  首字母要小些,直接复制过来岛主问题,查了2个小时才发现,容易忽略的地方

隐蔽的bean没有定义错误:No bean named 'SysJdTypeServiceImpl' is defined

原文:https://www.cnblogs.com/rainersha/p/11414408.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!