赞
踩
mqProducer.syncSend(ActivityRedisConstant.TOPIC_SAVE_SIGNUP, saveSignUpMsg);
@Value(“${mq.signup-topic:saas-signup}”)从nacos中取如果没有默认用saas-signup
注意:每个环境的名称最好不要一样不然会消费到其他环境中,
如
开发环境
mq:
signup-topic: saas-dev-signup
team-signup-topic: saas-dev-team-signup
测试环境
mq:
signup-topic: saas-test-signup
team-signup-topic: saas-test-team-signup
正式环境
mq:
signup-topic: saas-signup
team-signup-topic: saas-team-signup
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。