WxConfig.java 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package com.hys.app.pay.wx;
  2. import com.github.binarywang.wxpay.config.WxPayConfig;
  3. import com.github.binarywang.wxpay.service.WxPayService;
  4. import com.github.binarywang.wxpay.service.impl.WxPayServiceImpl;
  5. import lombok.Data;
  6. import org.springframework.beans.factory.annotation.Value;
  7. import org.springframework.context.annotation.Configuration;
  8. import org.springframework.stereotype.Component;
  9. @Data
  10. @Configuration
  11. public class WxConfig {
  12. @Value("${wxpay.appId}")
  13. private String appId;
  14. @Value("${wxpay.mchId}")
  15. private String mchId;
  16. @Value("${wxpay.mchKey}")
  17. private String mchKey;
  18. @Value("${wxpay.keyPath}")
  19. private String keyPath;
  20. @Value("${wxpay.apiV3Key}")
  21. private String apiV3Key;
  22. @Value("${wxpay.notifyUrl}")
  23. private String notifyUrl;
  24. @Value("${wxpay.subMchId}")
  25. private String subMchId;
  26. @Value("${wxpay.secret}")
  27. private String secret;
  28. @Value("${wxpay.oAuth2Url}")
  29. private String oAuth2Url;
  30. @Value("${wxpay.tokenurl}")
  31. private String tokenUrl;
  32. @Value("${wxpay.userInfoUrl}")
  33. private String userInfoUrl;
  34. }