赞
踩
本文主要记录基于SpringBoot2实现对RabbitMQ镜像集群的访问,直接访问RabbitMQ的服务器基本一致,只需要修改配置文件。
TCP代理负载均衡的地址和监听端口端口
192.168.132.143:5672
MQ节点一
192.168.132.137:5672
MQ节点二
192.168.132.139:5672
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.3.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.ictpaas</groupId> <artifactId>rabbitmq-test</artifactId> <version>0.0.1-SNAPSHOT</version> <name>rabbitmq-test</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </d
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。