2023-04-24 18:50:39.372 WARN 26732 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'logAspect': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysLogProducer': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.apache.rocketmq.spring.core.RocketMQTemplate' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}
项目启动报错。 今天把之前的一个mq的东西转移到一个新的服务里面,一直报rocketmqTemplate初始化异常。最后发现是新的服务没有配置。
参考:https://www.likecs.com/show-307952411.html
标签:available,core,qualifies,candidate,springframework,bean,org,type From: https://www.cnblogs.com/thinkingandworkinghard/p/17350556.html