AliPayProperties.java 670 B

12345678910111213141516171819202122
  1. package com.wjp.modules.pay.config;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.context.annotation.PropertySource;
  5. import org.springframework.stereotype.Component;
  6. @Data
  7. @Component
  8. @PropertySource("classpath:/alipay.properties")
  9. @ConfigurationProperties(prefix = "alipay")
  10. public class AliPayProperties {
  11. private String appId;
  12. private String privateKey;
  13. private String publicKey;
  14. private String appCertPath;
  15. private String aliPayCertPath;
  16. private String aliPayRootCertPath;
  17. private String serverUrl;
  18. private String returnUrl;
  19. private String notifyUrl;
  20. }