Skip to content

Commit

Permalink
Merge pull request #731 from xiefangzhenz/bugfix/filter-logic-fix
Browse files Browse the repository at this point in the history
添加项目前缀,日志无法插入
  • Loading branch information
YunaiV authored Feb 8, 2025
2 parents 38c24bd + 256b40b commit d7c01b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,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());
String apiUri = request.getRequestURI().substring(request.getContextPath().length());
return !StrUtil.startWithAny(apiUri, webProperties.getAdminApi().getPrefix(), webProperties.getAppApi().getPrefix());
}

}

0 comments on commit d7c01b7

Please sign in to comment.