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
This commit is contained in:
parent
3fa7aedbe2
commit
41db3b5ed0
@ -66,6 +66,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