Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightweight-component/aj-iam-client
https://github.com/lightweight-component/aj-iam-client
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/lightweight-component/aj-iam-client
- Owner: lightweight-component
- License: apache-2.0
- Created: 2024-06-26T03:08:27.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T03:12:32.000Z (5 months ago)
- Last Synced: 2024-06-26T04:27:41.292Z (5 months ago)
- Language: Java
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```java
@Value("${auth.excludes: }")
private String excludes;/**
* 加入认证拦截器
*/
@Override
public void addInterceptors(InterceptorRegistry registry) {
LogHelper.p("初始化 SSO 拦截器");
InterceptorRegistration interceptorRegistration = registry.addInterceptor(authInterceptor());
interceptorRegistration.addPathPatterns("/**"); // 拦截所有// 不需要的拦截路径
if (StringUtils.hasText(excludes)) {
String[] arr = excludes.split("\\|");
interceptorRegistration.excludePathPatterns(arr);
}
}
```