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

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个小时才发现,容易忽略的地方
posted @ 2019-08-26 19:27  刘维风  阅读(670)  评论(0编辑  收藏  举报