添加简历识别模块
This commit is contained in:
@@ -69,6 +69,14 @@ public class EncryptConstants {
|
||||
"/app/appskill/list",
|
||||
"/cms/appskill/list",
|
||||
"/cms/employeeConfirm/list",
|
||||
"/app/user/createResume"
|
||||
"/app/user/createResume",
|
||||
"/app/user/resume/recognition"
|
||||
);
|
||||
|
||||
/**
|
||||
* 请求需要排除的接口
|
||||
*/
|
||||
public static final List<String> EXCLUDE_PATTERNS = Arrays.asList(
|
||||
"/app/user/resume/recognition"
|
||||
);
|
||||
}
|
||||
@@ -144,6 +144,12 @@ public class RequestWrapperFilter implements Filter {
|
||||
}
|
||||
|
||||
String requestURI = request.getRequestURI();
|
||||
// 排除指定接口
|
||||
for (String exclude : EncryptConstants.EXCLUDE_PATTERNS) {
|
||||
if (pathMatcher.match(exclude, requestURI)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// 检查URL是否匹配需要加解密的模式
|
||||
for (String pattern : EncryptConstants.URL_PATTERNS) {
|
||||
|
||||
Reference in New Issue
Block a user