@Configuration @Import(value=LampRabbitMqConfiguration.RabbitMqConfiguration.class) public class LampRabbitMqConfiguration extends Object
若自建服务的 包名 跟当前类的包名不同,请在服务的启动类上配置下列注解,否则启动报错 \@ComponentScan({ "xxx", // xxx 改成自建服务的 包名 "top.tangyh.basic.mq" })
Copyright © 2022. All rights reserved.