WechatOpenProperties.java 840 B

123456789101112131415161718192021222324252627282930313233343536
  1. package com.ydtech.config.properties;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. @Component
  5. @ConfigurationProperties(prefix = "wechat.open")
  6. public class WechatOpenProperties {
  7. /**
  8. * 设置微信三方平台的appid
  9. */
  10. private String componentAppId;
  11. /**
  12. * 设置微信三方平台的app secret
  13. */
  14. private String componentSecret;
  15. public String getComponentAppId() {
  16. return componentAppId;
  17. }
  18. public void setComponentAppId(String componentAppId) {
  19. this.componentAppId = componentAppId;
  20. }
  21. public String getComponentSecret() {
  22. return componentSecret;
  23. }
  24. public void setComponentSecret(String componentSecret) {
  25. this.componentSecret = componentSecret;
  26. }
  27. }