server: port: 9402 # Spring spring: application: # 应用名称 name: rocketmq profiles: # 环境配置 active: @profiles.active@ --- # rocketmq 配置 rocketmq: # 生产者的组名 producer: #是否开启自动配置 # isEnable: true # 发送同一类消息的设置为同一个group,保证唯一 groupName: message-producer # 消息最大长度 默认1024*4(4M) maxMessageSize: 4096 # 发送消息超时时间,默认3000 sendMsgTimeout: 3000 # 发送消息失败重试次数,默认2 retryTimesWhenSendFailed: 3 # group: produce-group # 消费者的组名 consumer: #是否开启自动配置 # isEnable: true # 官方建议:确保同一组中的每个消费者订阅相同的主题。 groupName: message-consumer consumerThreadMin: 20 consumerThreadMax: 64 # 设置一次消费消息的条数,默认为1条 consumerMessageBatchMaxSize: 1 # NameServer地址 nameServer: 114.235.183.147:9876 --- # nacos 配置 spring: cloud: nacos: # nacos 服务地址 server-addr: @nacos.server@ username: @nacos.username@ password: @nacos.password@ discovery: # 注册组 group: @nacos.discovery.group@ namespace: ${spring.profiles.active} config: # 配置组 group: @nacos.config.group@ namespace: ${spring.profiles.active} config: import: - optional:nacos:application-common.yml