A component required a bean of type ‘com.wyh.service.XXX‘ that could not be found.
Posted 蜜桃婷婷酱
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了A component required a bean of type ‘com.wyh.service.XXX‘ that could not be found.相关的知识,希望对你有一定的参考价值。
A component required a bean of type ‘XXXService’ that could not be found
组件需要找不到“Service”类型的bean
因为service的实现类serviceimpl忘记了加@Service注解。
只要在下面加入这个注释就能获取到bean
@Service
以上是关于A component required a bean of type ‘com.wyh.service.XXX‘ that could not be found.的主要内容,如果未能解决你的问题,请参考以下文章
解决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