RocketMqConfig.java 927 B

12345678910111213141516171819202122232425262728293031
  1. //package com.cn.tianji.config;
  2. //
  3. //import com.aliyun.openservices.ons.api.PropertyKeyConst;
  4. //import lombok.Data;
  5. //import org.springframework.boot.context.properties.ConfigurationProperties;
  6. //import org.springframework.context.annotation.Bean;
  7. //import org.springframework.context.annotation.Configuration;
  8. //
  9. //import java.util.Properties;
  10. //
  11. //@Data
  12. //@Configuration
  13. //@ConfigurationProperties(prefix = "rocketmq")
  14. //public class RocketMqConfig {
  15. //
  16. // private String nameServer;
  17. //
  18. // private String accessKey;
  19. //
  20. // private String secretKey;
  21. //
  22. // @Bean
  23. // public Properties build() {
  24. // Properties properties = new Properties();
  25. // properties.setProperty(PropertyKeyConst.AccessKey, accessKey);
  26. // properties.setProperty(PropertyKeyConst.SecretKey, secretKey);
  27. // properties.setProperty(PropertyKeyConst.NAMESRV_ADDR, nameServer);
  28. // return properties;
  29. // }
  30. //
  31. //}