package com.fdkankan.manage.config; import lombok.Data; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.context.annotation.Configuration; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @Configuration @RefreshScope @Data public class ManageConfig { @Value("${manage.share.scene:xx}") private String shareScenes; @Value("${fyun.host}") private String queryPath; @Value("${manage.default.password:afdd0b4ad2ec172c586e2150770fbf9e}") private String defaultPassword; @Value("${haixin.appkey}") private String haixinApiAppkey; @Value("${haixin.basePath}") private String haixinApiBasePath; @Value("${to-haixin.server-url}") private String serverUrl; @Value("${queue.scene.copy:ucenter-copy-scene}") private String copySceneQueue; public List getNumList(){ if(StringUtils.isNotBlank(this.shareScenes)){ String[] split = shareScenes.split(","); return Arrays.asList(split); } return new ArrayList<>(); } }