Skip to content
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

在路由校验的时候应该忽略掉 context path #562

Open
someok opened this issue Dec 29, 2023 · 0 comments
Open

在路由校验的时候应该忽略掉 context path #562

someok opened this issue Dec 29, 2023 · 0 comments

Comments

@someok
Copy link

someok commented Dec 29, 2023

使用版本:

1.37.0

报错信息:

在路由校验的时候应该忽略掉 context path

但是在源码中没有这么做,当然也可以在应用初始化的时候手工处理 cn.dev33.satoken.application.ApplicationInfo#routePrefix,不过这个好像也没在文档中体现,并且也没必要让用户做,sa-token 应该直接做掉才是合理的

cn.dev33.satoken.servlet.model.SaRequestForServlet#getRequestPath

image

希望结果:

路由校验的时候忽略掉 context path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant