WechatAuthProperties.java 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.java110.app.properties;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.context.annotation.PropertySource;
  4. import org.springframework.stereotype.Component;
  5. @Component
  6. @ConfigurationProperties(prefix = "java110.auth.wechat")
  7. @PropertySource("classpath:wechatAuth.properties")
  8. public class WechatAuthProperties {
  9. private String sessionHost;
  10. private String appId;
  11. private String secret;
  12. private String grantType;
  13. public String getSessionHost() {
  14. return sessionHost;
  15. }
  16. public void setSessionHost(String sessionHost) {
  17. this.sessionHost = sessionHost;
  18. }
  19. public String getAppId() {
  20. return appId;
  21. }
  22. public void setAppId(String appId) {
  23. this.appId = appId;
  24. }
  25. public String getSecret() {
  26. return secret;
  27. }
  28. public void setSecret(String secret) {
  29. this.secret = secret;
  30. }
  31. public String getGrantType() {
  32. return grantType;
  33. }
  34. public void setGrantType(String grantType) {
  35. this.grantType = grantType;
  36. }
  37. }