1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| package com.dl.framework.config.properties;
|
| import lombok.Data;
| import org.springframework.boot.context.properties.ConfigurationProperties;
| import org.springframework.stereotype.Component;
|
| /**
| * xss过滤 配置属性
| *
| * @author Lion Li
| */
| @Data
| @Component
| @ConfigurationProperties(prefix = "xss")
| public class XssProperties {
|
| /**
| * 过滤开关
| */
| private String enabled;
|
| /**
| * 排除链接(多个用逗号分隔)
| */
| private String excludes;
|
| /**
| * 匹配链接
| */
| private String urlPatterns;
|
| }
|
|