XssProperties.java 483 B

12345678910111213141516171819202122232425262728
  1. package com.zsElectric.boot.common.xss;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import java.util.ArrayList;
  5. import java.util.List;
  6. /**
  7. * xss过滤 配置属性
  8. *
  9. * @author Lion Li
  10. */
  11. @Data
  12. @ConfigurationProperties(prefix = "xss")
  13. public class XssProperties {
  14. /**
  15. * Xss开关
  16. */
  17. private Boolean enabled;
  18. /**
  19. * 排除路径
  20. */
  21. private List<String> excludeUrls = new ArrayList<>();
  22. }