com.suchtool.nicelog.constant.ProcessIgnoreUrl Maven / Gradle / Ivy
package com.suchtool.nicelog.constant;
import org.springframework.util.AntPathMatcher;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 不处理的url列表
*/
public interface ProcessIgnoreUrl {
List KNIFE4J = Arrays.asList(
"/doc.html",
"/swagger-resources",
"/swagger-resources/configuration",
"/v3/api-docs",
"/v2/api-docs",
"/webjars/**");
List ALL = new ArrayList<>(KNIFE4J);
static boolean isInWrapperIgnoreUrl(String uri) {
AntPathMatcher pathMatcher = new AntPathMatcher();
for (String s : ProcessIgnoreUrl.ALL) {
if (pathMatcher.match(s, uri)) {
return true;
}
}
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy