拦截配置修改

This commit is contained in:
even 2025-05-12 19:56:29 +08:00
parent 0b67139b9e
commit d9f2ba93d6
2 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,8 @@ import java.util.Objects;
* @author mianbin modified from yudao
*/
@Slf4j
public class TenantSecurityWebFilter extends ApiRequestFilter {
//public class TenantSecurityWebFilter extends ApiRequestFilter {
public class TenantSecurityWebFilter {
private final TenantProperties tenantProperties;

View File

@ -19,9 +19,8 @@ public abstract class ApiRequestFilter extends OncePerRequestFilter {
@Override
protected boolean shouldNotFilter(HttpServletRequest request) {
// 只过滤 API 请求的地址
// return !StrUtil.startWithAny(request.getRequestURI(), webProperties.getAdminApi().getPrefix(),
// webProperties.getAppApi().getPrefix());
return true;
return !StrUtil.startWithAny(request.getRequestURI(), webProperties.getAdminApi().getPrefix(),
webProperties.getAppApi().getPrefix());
}
}