123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- package com.emato.biz.config;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.context.annotation.PropertySource;
- import org.springframework.stereotype.Component;
- /**
- * 读取代码生成相关配置
- *
- * @author cadmin
- */
- @Component
- @ConfigurationProperties(prefix = "kmall")
- @PropertySource(value = {"classpath:kmall-config.yml"})
- public class KmallConfig {
- public static Integer querySize;
- // 商户编号
- public static String merchSn;
- // 商户名称
- public static String merchName;
- // 商户简称
- public static String merchShortName;
- // 第三方商户编号
- public static String thirdSn;
- // 生产环境密钥
- public static String md5Salt;
- private static String queryAllInveMngUrl;
- private static String queryAllShopInveMngUrl;
- public static String requestToKmall;
- public static String getMerchSn() {
- return merchSn;
- }
- @Value("${merchSn}")
- public void setMerchSn(String merchSn) {
- this.merchSn = merchSn;
- }
- public static String getMerchName() {
- return merchName;
- }
- @Value("${merchName}")
- public void setMerchName(String merchName) {
- this.merchName = merchName;
- }
- public static String getMerchShortName() {
- return merchShortName;
- }
- @Value("${merchShortName}")
- public void setMerchShortName(String merchShortName) {
- this.merchShortName = merchShortName;
- }
- public static String getThirdSn() {
- return thirdSn;
- }
- @Value("${thirdSn}")
- public void setThirdSn(String thirdSn) {
- this.thirdSn = thirdSn;
- }
- public static String getMd5Salt() {
- return md5Salt;
- }
- @Value("${md5Salt}")
- public void setMd5Salt(String md5Salt) {
- this.md5Salt = md5Salt;
- }
- public static Integer getQuerySize() {
- return querySize;
- }
- @Value("${querySize}")
- public void setQuerySize(Integer querySize) {
- KmallConfig.querySize = querySize;
- }
- public static String getQueryAllInveMngUrl() {
- return queryAllInveMngUrl;
- }
- @Value("${queryAllInveMngUrl}")
- public void setQueryAllInveMngUrl(String queryAllInveMngUrl) {
- KmallConfig.queryAllInveMngUrl = queryAllInveMngUrl;
- }
- public static String getQueryAllShopInveMngUrl() {
- return queryAllShopInveMngUrl;
- }
- @Value("${queryAllShopInveMngUrl}")
- public void setQueryAllShopInveMngUrl(String queryAllShopInveMngUrl) {
- KmallConfig.queryAllShopInveMngUrl = queryAllShopInveMngUrl;
- }
- public static String getRequestToKmall() {
- return requestToKmall;
- }
- @Value("${requestToKmall}")
- public void setRequestToKmall(String requestToKmall) {
- KmallConfig.requestToKmall = requestToKmall;
- }
- }
|