InterceptorConfig.java 662B

1234567891011121314151617181920212223242526272829303132
  1. package com.yunzhi.roundabout.config;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. @Data
  6. @Component
  7. @ConfigurationProperties(prefix = "interceptor")
  8. public class InterceptorConfig {
  9. private Config permission;
  10. @Data
  11. public static class Config {
  12. /**
  13. * 是否启用
  14. */
  15. private boolean enable;
  16. /**
  17. * 包含的路径
  18. */
  19. private String[] includePaths = new String[]{};
  20. /**
  21. * 排除路径
  22. */
  23. private String[] excludePaths = new String[]{};
  24. }
  25. }