Spring 出现 No qualifying bean of type ‘com.xxx‘ available 解决方法
目录
- 1. 问题所示
- 2. 原理分析
- 3. 解决方法
- 4. 彩蛋
-
- 4.1 bug彩蛋
- 4.2 完整Demo
- 4.3 补充Springboot
1. 问题所示
出现如下问题:
19:58:23.476 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'org.springframework.context.annotation.internalCommonAnnotationProcessor'
19:58:23.482 [main] DEBUG org.springframework.beans.factory.support.DefaultListableBeanFactory - Creating shared instance of singleton bean 'mainApp'
Exception