A component required a bean of type ‘com.xxx.xxx.service.xxxService‘ that could not be found的debug报错

Posted 最小的帆也能远航

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了A component required a bean of type ‘com.xxx.xxx.service.xxxService‘ that could not be found的debug报错相关的知识,希望对你有一定的参考价值。

做个笔记防止一直出现这种问题,其实就是很简单的一个问题只是在ServiceImpl中少了注释才会出现这个debug 

只要在下面加入这个注释就能获取到bean
 

 

以上是关于A component required a bean of type ‘com.xxx.xxx.service.xxxService‘ that could not be found的debug报错的主要内容,如果未能解决你的问题,请参考以下文章

解决SpringBoot启动失败:A component required a bean of type ‘xxxxxxx‘ that could not be found.

A component required a bean of type ‘org.springframework.web.client.RestTemplate‘ that could not be

A component required a bean of type ‘com.xxx.xxx.service.xxxService‘ that could not be found的debug报错

A component required a bean of type ‘com.xxx.xxx.service.xxxService‘ that could not be found的debug报错

RawText "123" must be wrapped in an explicit <Text> component

Super expression must either be null or a function, not undefined