FilePathProperties.java 583 B

12345678910111213141516171819202122232425262728293031
  1. package com.energy.manage.analyse.common;
  2. import lombok.Data;
  3. import org.springframework.beans.factory.annotation.Value;
  4. import org.springframework.cloud.context.config.annotation.RefreshScope;
  5. import org.springframework.stereotype.Component;
  6. import java.util.List;
  7. @Data
  8. @Component
  9. @RefreshScope
  10. public class FilePathProperties {
  11. /**
  12. * 分析文件内网地址
  13. */
  14. @Value("${file.intranet.addr}")
  15. public String fileIntranetAddr;
  16. /**
  17. * 分析文件外网地址
  18. */
  19. @Value("${file.external.addr}")
  20. public String fileExternalAddr;
  21. }