注意配置 连接工厂基本配置 import com.rabbitmq.client.ConnectionFactory; import com.rabbitmq.client.Connection; /** * @author yezixun * @date 2019/11/7 14:35 */ public class ConnectionUtil { public static Connection getConnection() throws Exception { //定义连接工厂 ConnectionFactory factory = n...