WechatConfig.java 645 B

123456789101112131415161718192021222324252627282930
  1. package com.jpsoft.machinery.config;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. @Data
  6. @ConfigurationProperties(prefix = "wechat")
  7. @Component
  8. public class WechatConfig {
  9. /**
  10. * 设置微信公众号或者小程序等的appid
  11. */
  12. private String appId;
  13. /**
  14. * 设置微信公众号或者小程序等的appSecret
  15. */
  16. private String appSecret;
  17. /**
  18. * 获取通用token地址
  19. */
  20. private String tokenUrl;
  21. /**
  22. * 退回通知模板编号
  23. */
  24. private String backNoticeTemplateId;
  25. }