| | |
| | | package com.ycl.config; |
| | | |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用于配置白名单资源路径 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | @ConfigurationProperties(prefix = "secure.ignored") |
| | | public class IgnoreUrlsConfig { |
| | | |
| | | private List<String> urls = new ArrayList<>(); |
| | | |
| | | } |
| | | package com.ycl.config;
|
| | |
|
| | | import lombok.Getter;
|
| | | import lombok.Setter;
|
| | | import org.springframework.boot.context.properties.ConfigurationProperties;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import java.util.ArrayList;
|
| | | import java.util.List;
|
| | |
|
| | | /**
|
| | | * 用于配置白名单资源路径
|
| | | */
|
| | | @Getter
|
| | | @Setter
|
| | | @Component
|
| | | @ConfigurationProperties(prefix = "secure.ignored")
|
| | | public class IgnoreUrlsConfig {
|
| | |
|
| | | private List<String> urls = new ArrayList<>();
|
| | |
|
| | | }
|