content: package com.aliyun.openservices.springboot.example.config;
  
  import com.aliyun.openservices.ons.api.PropertyKeyConst;
  import org.springframework.boot.context.properties.ConfigurationProperties;
  import org.springframework.context.annotation.Configuration;
  
  import java.util.Properties;
  
  @Configuration
  @ConfigurationProperties(prefix = "rocketmq")
  public class MqConfig {
  
      private String accessKey;
      private String secretKey;
      private String nameSrvAddr;
      private String topic;
      private String groupId;
      private String tag;
      private String orderTopic;
      private String orderGroupId;
      private String orderTag;
  
      public Properties getMqPropertie() {
          Properties properties = new Properties();
          properties.setProperty(PropertyKeyConst.AccessKey, this.accessKey);
          properties.setProperty(PropertyKeyConst.SecretKey, this.secretKey);
          properties.setProperty(PropertyKeyConst.NAMESRV_ADDR, this.nameSrvAddr);
          return properties;
      }
  
      public String getAccessKey() {
          return accessKey;
      }
  
      public void setAccessKey(String accessKey) {
          this.accessKey = accessKey;
      }
  
      public String getSecretKey() {
          return secretKey;
      }
  
      public void setSecretKey(String secretKey) {
          this.secretKey = secretKey;
      }
  
      public String getNameSrvAddr() {
          return nameSrvAddr;
      }
  
      public void setNameSrvAddr(String nameSrvAddr) {
          this.nameSrvAddr = nameSrvAddr;
      }
  
      public String getTopic() {
          return topic;
      }
  
      public void setTopic(String topic) {
          this.topic = topic;
      }
  
      public String getGroupId() {
          return groupId;
      }
  
      public void setGroupId(String groupId) {
          this.groupId = groupId;
      }
  
      public String getTag() {
          return tag;
      }
  
      public void setTag(String tag) {
          this.tag = tag;
      }
  
      public String getOrderTopic() {
          return orderTopic;
      }
  
      public void setOrderTopic(String orderTopic) {
          this.orderTopic = orderTopic;
      }
  
      public String getOrderGroupId() {
          return orderGroupId;
      }
  
      public void setOrderGroupId(String orderGroupId) {
          this.orderGroupId = orderGroupId;
      }
  
      public String getOrderTag() {
          return orderTag;
      }
  
      public void setOrderTag(String orderTag) {
          this.orderTag = orderTag;
      }
  }
  