Document rabbit.addresses property

pull/526/head
Phillip Webb 11 years ago
parent f4ebf8c80f
commit 798229f530

@ -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;
}

@ -1,5 +1,5 @@
/*
* 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

Loading…
Cancel
Save