Document rabbit.addresses property
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user