dromara / dromara/Sa-Token

多账号鉴权,路由匹配因为去除掉了content-path,导致匹配失败

Open
#736 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
19k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

![Image](https://github.com/user-attachments/assets/3a2fdb80-dff0-45ad-af5b-d5cf2f5d3100)多模块项目可能两个项目配置了不同的context-path,并且复用一个satoken,因为他会去掉前缀,导致不得不抛弃配置,在mapping注解上添加获取是进入拦截器之前重置routePrefix,能不能添加一个配置项,根据配置项觉得是否启用

![Image](https://github.com/user-attachments/assets/d4eb21f1-b744-485b-bfeb-a576c24dc4a8)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing route matching in a multi-module setup where projects use different context paths and share Sa-Token. Inspect the mapping annotation, interceptor entry point, and routePrefix handling mentioned in the report. Done means a configuration option controls whether routePrefix is reset before interception, while matching continues to work for both context paths.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.