rabbitmq整合springboot写测试类注入RabbitTemplate时报错Could not autowire. No beans of 'RabbitTemplate' type found.
这可能是由于建rabbitmq配置类时包的位置建错了,正确的应该是建立在rabbitmqspringbootProducer下。
rabbitmq整合springboot写测试类注入RabbitTemplate时报错Could not autowire. No beans of 'RabbitTemplate' type found.
这可能是由于建rabbitmq配置类时包的位置建错了,正确的应该是建立在rabbitmqspringbootProducer下。