提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.framework.xss.config; |
H |
2 |
|
|
3 |
import lombok.Data; |
|
4 |
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
5 |
import org.springframework.validation.annotation.Validated; |
|
6 |
|
|
7 |
import java.util.Collections; |
|
8 |
import java.util.List; |
|
9 |
|
|
10 |
/** |
|
11 |
* Xss 配置属性 |
|
12 |
* |
|
13 |
* @author iailab |
|
14 |
*/ |
|
15 |
@ConfigurationProperties(prefix = "iailab.xss") |
|
16 |
@Validated |
|
17 |
@Data |
|
18 |
public class XssProperties { |
|
19 |
|
|
20 |
/** |
|
21 |
* 是否开启,默认为 true |
|
22 |
*/ |
|
23 |
private boolean enable = true; |
|
24 |
/** |
|
25 |
* 需要排除的 URL,默认为空 |
|
26 |
*/ |
|
27 |
private List<String> excludeUrls = Collections.emptyList(); |
|
28 |
|
|
29 |
} |