package com.chinaztt.mes.basic.entity; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.stereotype.Component; /** * @author ZTT */ @RefreshScope @Component @Data public class PartBean { public static final String PART_DESC = "PART_DESC"; public static final String UNIT_MEAS = "UNIT_MEAS"; public static final String INVENTORY_PART_INFO = "INVENTORY_PART_INFO"; public static final String COUNT = "COUNT"; @Value("${erp.ip:}") private String ip; @Value("${erp.region:}") private String region; /** * 测试库使用 */ @Value("${erp.secretKey:}") private String secretKey; /** * 明文key,正式库使用 */ @Value("${erp.cleartextSecretKey:}") private String cleartextSecretKey; @Value("${erp.name:}") private String name; }