No qualifying bean of type:scanBasePackages
Posted ISaiSai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No qualifying bean of type:scanBasePackages相关的知识,希望对你有一定的参考价值。
Spring Boot 默认扫描当前包及子包
如果需要加载其它包,需要增加scanBasePackages
@SpringBootApplication(scanBasePackages = “com.XXX”)
用以解决:No qualifying bean of type问题
以上是关于No qualifying bean of type:scanBasePackages的主要内容,如果未能解决你的问题,请参考以下文章
No qualifying bean of type报错问题处理
No qualifying bean of type '***' available: expected at least 1 bean which qualifies as auto
No qualifying bean of type ‘com.bruceliu.mapper.UserMapper‘
spring注入时报错::No qualifying bean of type 'xxx.xxMapper'