No qualifying bean of type xxxxx is defined

来源:互联网 发布:信鸽分类信息软件 编辑:程序博客网 时间:2024/06/07 15:30

多数原因是Bean没有正确注册,造成的原因有:

1、@ComponentScan('....')中省略号是不是没有写对

2、注解是不是没有加,例如@Component,@Service,@Controller,@Repository。


0 0
原创粉丝点击