例如,如果 context-path 是/myapp,则排除路径应配置为 /myapp/api/doc.html/**。5. 检查是否有其他配置覆盖了 excludePathPatterns 的设置 检查是否有其他拦截器配置或中间件(如 Spring Security)可能影响到你的请求路径。 查看日志输出,确认请求是否真的被拦截器拦截,以及拦截器中的 excludePathPatterns 是否被正确...
发现被拦截的是 /error; 代码有bug触发了错误,这时路径被重定向为**/error,由于**/error不在excludePathPatterns中所以会被拦截器拦截。
are excluded unless effectively excluded via the --include-path-patterns option.""", ) @click.option( "-e", @@ -205,8 +226,11 @@ def main(ctx: click.Context, **kwargs: config.OptionTypes) -> None: else: excess_verbosity = 0 # Log warnings by default, unless quiet default_level...
and it’s moreconsistentwith howdefaultPathresolves in relation to the context directory. There was a need for this there, and I think the same need applies here.