No qualifying bean of type xxxxx is defined

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

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

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


发布了69 篇原创文章 · 获赞 16 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/huanglei1234567890/article/details/71909090