代码中没有明显的错误,但是excludePathPatterns可能不生效的原因是因为在该拦截器之前已经存在其他的拦截器,这些拦截器可能会拦截到excludePathPatterns所排除的请求,导致该配置不生效。解决办法是将该拦截器放在其他拦截器之前,或者将excludePathPatterns中的路径改为在其他拦截器中不存在的路径。

这段代码哪里有错误为什么excludePathPatterns不生效package comxsdzlconfig;import comxsdzlInterceptorLoginInterceptor;import orgspringframeworkbeansfactoryannotationAutowired;import orgspringframeworkcontextannotationC