Commit 798229f5 authored by Phillip Webb's avatar Phillip Webb

Document rabbit.addresses property

parent f4ebf8c8
......@@ -23,6 +23,7 @@ import org.springframework.util.StringUtils;
* Configuration properties for Rabbit.
*
* @author Greg Turnquist
* @author Dave Syer
*/
@ConfigurationProperties(name = "spring.rabbitmq")
public class RabbitProperties {
......@@ -68,14 +69,14 @@ public class RabbitProperties {
return this.port;
}
public String getAddresses() {
return this.addresses == null ? this.host + ":" + this.port : this.addresses;
}
public void setAddresses(String addresses) {
this.addresses = addresses;
}
public String getAddresses() {
return (this.addresses == null ? this.host + ":" + this.port : this.addresses);
}
public void setPort(int port) {
this.port = port;
}
......
/*
* Copyright 2012-2013 the original author or authors.
* Copyright 2012-2014 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -21,6 +21,8 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Tests for {@link RabbitProperties}.
*
* @author Dave Syer
*/
public class RabbitPropertiesTests {
......
......@@ -135,11 +135,13 @@ spring.jmx.enabled=true # Expose MBeans from Spring
# RABBIT (RabbitProperties)
spring.rabbitmq.host= # connection host
spring.rabbitmq.port= # connection port
spring.rabbitmq.addresses= # connection addresses (e.g. myhost:9999,otherhost:1111)
spring.rabbitmq.username= # login user
spring.rabbitmq.password= # login password
spring.rabbitmq.virtualhost=
spring.rabbitmq.dynamic=
# REDIS (RedisProperties)
spring.redis.host=localhost # server host
spring.redis.password= # server password
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment