|
@@ -27,8 +27,7 @@ public class RabbitMqApiUtil {
|
|
|
/*** 获取RabbitMq nodes* @return*/
|
|
|
public static String getRabbitMqNodes(String rabbitMqUrl, String userName, String password) {
|
|
|
String url = String.format("%s/api/nodes", rabbitMqUrl);
|
|
|
- String result = new CurlUtil.Builder(url, userName, password).addHeader("Content-Type", "application/json; charset=utf-8").get().build();
|
|
|
- return result;
|
|
|
+ return new CurlUtil.Builder(url, userName, password).addHeader("Content-Type", "application/json; charset=utf-8").get().build();
|
|
|
}
|
|
|
|
|
|
/*** 获取RabbitMq exchanges* @return*/
|