New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
内部服务外网隔离,子服务添加过滤器后报错 #134
Comments
你用法有误, |
@click33 我标题没描述清楚,过滤器是加到子服务里的 |
这是走的什么调用抱的错,正常转发,还是feign 还是dubbo |
@click33 正常转发,用postman调controller里的接口报这个错,把过滤器去掉就正常了 |
看不出来什么问题了,有时间的话弄个复现demo吧,这边本地调试一下 |
@click33 抱歉占用你的时间了。我通过排除法定位到 除了SaTokenConfigure实现WebMvcConfigurer接口,我还有个WebMvcConfig配置类并且@EnableWebMvc。 |
很多问题排查到最后发现都不是框架的问题,而是被一些其它的代码影响了…… 没有疑问的话就关闭 issues 吧 |
@click33 疑问到是有一个😁,为什么SaServletFilter和EnableWebMvc不能共用呢,不知道我的问题描述的准确不 |
这个和 SpringBoot 配置初始化机制有关系,我也没有很仔细的研究过,找到解决方案了就OK |
参考文档
过滤器配置
异常信息:
异常位置:
cn.dev33.satoken.spring.SpringMVCUtil
The text was updated successfully, but these errors were encountered: