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

怎么添加统一url前缀呢? #216

Open
jingpan888 opened this issue Jul 14, 2021 · 2 comments
Open

怎么添加统一url前缀呢? #216

jingpan888 opened this issue Jul 14, 2021 · 2 comments

Comments

@jingpan888
Copy link

image
我配置了
server:
servlet:
context-path: /api
如果在swagger所有请求前添加/api前缀

@Adolph-WSY
Copy link

请问你是基于什么样的需求,需要在所有请求前添加前缀呢?
swagger 会在请求的时候自动吧 context-path 这个全局 context 加到请求中的,不影响 swagger 调用。
image

@LSL1618
Copy link

LSL1618 commented Dec 23, 2021

项目上下文路径context-path就是统一URL前缀

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

3 participants