1234567891011121314151617181920212223242526272829303132 |
- package com.yunzhi.roundabout.config;
-
- import lombok.Data;
- import org.springframework.boot.context.properties.ConfigurationProperties;
- import org.springframework.stereotype.Component;
-
- @Data
- @Component
- @ConfigurationProperties(prefix = "interceptor")
- public class InterceptorConfig {
-
- private Config permission;
-
- @Data
- public static class Config {
-
- /**
- * 是否启用
- */
- private boolean enable;
-
- /**
- * 包含的路径
- */
- private String[] includePaths = new String[]{};
-
- /**
- * 排除路径
- */
- private String[] excludePaths = new String[]{};
- }
- }
|