excludepathpatterns 无效 踩坑了,调了好久才调出来。 原因: 访问的API /XXX 已经转换为 /error 了。 把“/error” 也加入 excludepathpatterns 里面即可。