IgnoreWhiteProperties.java 777 B

123456789101112131415161718192021222324252627282930313233
  1. package com.ydd.gateway.config.properties;
  2. import java.util.ArrayList;
  3. import java.util.List;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. import org.springframework.cloud.context.config.annotation.RefreshScope;
  6. import org.springframework.context.annotation.Configuration;
  7. /**
  8. * 放行白名单配置
  9. *
  10. * @author ruoyi
  11. */
  12. @Configuration
  13. @RefreshScope
  14. @ConfigurationProperties(prefix = "security.ignore")
  15. public class IgnoreWhiteProperties
  16. {
  17. /**
  18. * 放行白名单配置,网关不校验此处的白名单
  19. */
  20. private List<String> whites = new ArrayList<>();
  21. public List<String> getWhites()
  22. {
  23. return whites;
  24. }
  25. public void setWhites(List<String> whites)
  26. {
  27. this.whites = whites;
  28. }
  29. }