Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
798229f5
Commit
798229f5
authored
Mar 18, 2014
by
Phillip Webb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document rabbit.addresses property
parent
f4ebf8c8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
RabbitProperties.java
...ngframework/boot/autoconfigure/amqp/RabbitProperties.java
+5
-4
RabbitPropertiesTests.java
...mework/boot/autoconfigure/amqp/RabbitPropertiesTests.java
+3
-1
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+2
-0
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitProperties.java
View file @
798229f5
...
...
@@ -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
;
}
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitPropertiesTests.java
View file @
798229f5
/*
* Copyright 2012-201
3
the original author or authors.
* Copyright 2012-201
4
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
{
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
798229f5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment