package com.cloud.user.utils; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import java.io.Serializable; @Data @Component public class EnumStr implements Serializable { /** * fastdfs 文件服务器ip * wp */ @Value("${fdfsImgUrl.server}") private String httpImgUrl = ""; @Value("${uploadImg.pathUrl}") private String uploadImgUrl = ""; // es 接口 ip @Value("${es.es_network_host}") private String esHOSTNAME = ""; // es 接口 端口 @Value("${es.es_network_http_port}") private int esHTTP_PORT =9200; public static final String esUserIndex = "/personcollect/userInfo"; @Value("${toUpdate.pathUrl}") private String toUpdateUrl = ""; @Value("${uploadToSave.pathUrl}") private String uploadToSave = ""; @Value("${editToSave.pathUrl}") private String editToSave = ""; @Value("${singleEdit.pathUrl}") private String singleEdit = ""; @Value("${clusterLocaltion.pathUrl}") private String clusterLocaltion = ""; @Value("${addSingle.pathUrl}") private String addSingle = ""; @Value("${anyThingToSave.pathUrl}") private String anyThingToSave = ""; }