IDEA下Could not autowire, No beans of XX type Found

一:问题背景.

       1.1 IDEA下使用Kafka的KafkaTemplate时,引入依赖,,也是可以正常完成功能的.但是报一个红色的波浪线,看上去有些不舒服呐.

       IDEA下Could not autowire, No beans of XX type Found

       1.2 这种问题,首先思考一下,很大的可能是Bean注入的校验级别吧,类似于SQL片段报黄一样的问题.   IDEA下Could not autowire, No beans of XX type Found

IDEA下Could not autowire, No beans of XX type Found

IDEA下Could not autowire, No beans of XX type Found

没了,看上去好多了.