mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
Add default name-server for rmq binder in finchley branch
This commit is contained in:
parent
fb3f70d475
commit
fb26da1d2c
@ -67,6 +67,9 @@ public class RocketMQComponent4BinderAutoConfiguration {
|
||||
else {
|
||||
producer = new DefaultMQProducer(RocketMQBinderConstants.DEFAULT_GROUP);
|
||||
}
|
||||
if (StringUtils.isEmpty(configNameServer)) {
|
||||
configNameServer = RocketMQBinderConstants.DEFAULT_NAME_SERVER;
|
||||
}
|
||||
producer.setNamesrvAddr(configNameServer);
|
||||
return producer;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user