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
a240e225
Commit
a240e225
authored
Nov 27, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adapt to Rabbit internal change
See gh-15271
parent
cf525dab
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
RabbitAutoConfiguration.java
...work/boot/autoconfigure/amqp/RabbitAutoConfiguration.java
+2
-1
RabbitAutoConfigurationTests.java
...boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java
+2
-2
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration.java
View file @
a240e225
...
@@ -196,7 +196,8 @@ public class RabbitAutoConfiguration {
...
@@ -196,7 +196,8 @@ public class RabbitAutoConfiguration {
.
to
(
template:
:
setReplyTimeout
);
.
to
(
template:
:
setReplyTimeout
);
map
.
from
(
properties:
:
getExchange
).
to
(
template:
:
setExchange
);
map
.
from
(
properties:
:
getExchange
).
to
(
template:
:
setExchange
);
map
.
from
(
properties:
:
getRoutingKey
).
to
(
template:
:
setRoutingKey
);
map
.
from
(
properties:
:
getRoutingKey
).
to
(
template:
:
setRoutingKey
);
map
.
from
(
properties:
:
getQueue
).
whenNonNull
().
to
(
template:
:
setQueue
);
map
.
from
(
properties:
:
getQueue
).
whenNonNull
()
.
to
(
template:
:
setDefaultReceiveQueue
);
return
template
;
return
template
;
}
}
...
...
spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/amqp/RabbitAutoConfigurationTests.java
View file @
a240e225
...
@@ -326,8 +326,8 @@ public class RabbitAutoConfigurationTests {
...
@@ -326,8 +326,8 @@ public class RabbitAutoConfigurationTests {
.
withPropertyValues
(
"spring.rabbitmq.template.queue:default-queue"
)
.
withPropertyValues
(
"spring.rabbitmq.template.queue:default-queue"
)
.
run
((
context
)
->
{
.
run
((
context
)
->
{
RabbitTemplate
rabbitTemplate
=
context
.
getBean
(
RabbitTemplate
.
class
);
RabbitTemplate
rabbitTemplate
=
context
.
getBean
(
RabbitTemplate
.
class
);
assertThat
(
rabbitTemplate
).
hasFieldOrPropertyWithValue
(
"queue"
,
assertThat
(
rabbitTemplate
).
hasFieldOrPropertyWithValue
(
"default-queue"
);
"default
ReceiveQueue"
,
"default
-queue"
);
});
});
}
}
...
...
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