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

windows 的部署 mall 方式有谁跑通了吗? #141

Open
sthwhl opened this issue Jun 29, 2022 · 2 comments
Open

windows 的部署 mall 方式有谁跑通了吗? #141

sthwhl opened this issue Jun 29, 2022 · 2 comments

Comments

@sthwhl
Copy link

sthwhl commented Jun 29, 2022

我正在完善这部分,目前已经 能够登录 admin-mall-web 去访问。
但官方手册中,访问接口文档报 401 ,可以协助我一下吗?
image
image

@sthwhl
Copy link
Author

sthwhl commented Jun 29, 2022

es,mongodb,mq 是不是都没用起来

@LucySnappay
Copy link

swager 中如何用token并验证API:
直接运行localhost:8080/swagger-ui/html

1 先运行这个api接口: /admin/login
(注意:body中填好username/password) 然后 execute:
从response中获得 header和token:
{ "code": 200, "message": "操作成功", "data": { "tokenHead": "Bearer ", "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE2NjYzNzA3Nzk3MzEsImV4cCI6MTY2Njk3NTU3OX0.I7MyZ_mLpuHL6CphtWiBXmE6KHsYKnDt4hRXYCwDc6h4hJkW8_tgjPBmEU5SM3A1LTsYrDZ29xmPFOQr8SZ99Q" } }

2, swagger页面的最前面右上角 有这个按钮 Authorize, 点击一下,根据上面的header和token输入:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJhZG1pbiIsImNyZWF0ZWQiOjE2NjYzNzA3Nzk3MzEsImV4cCI6MTY2Njk3NTU3OX0.I7MyZ_mLpuHL6CphtWiBXmE6KHsYKnDt4hRXYCwDc6h4hJkW8_tgjPBmEU5SM3A1LTsYrDZ29xmPFOQr8SZ99Q

3,接下来就可以再调试其他的API了

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

2 participants