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

微服务模块间Feign调用时401 Unauthorized #6944

Closed
yak33 opened this issue Jul 23, 2024 · 3 comments
Closed

微服务模块间Feign调用时401 Unauthorized #6944

yak33 opened this issue Jul 23, 2024 · 3 comments

Comments

@yak33
Copy link

yak33 commented Jul 23, 2024

版本号:

3.7.0 ALL SpringBoot3 SAS版本

问题描述:

新建微服务模块,Feign调用时401 Unauthorized

错误截图:

直接调用没问题:
QQ_1721697748460
通过微服务间调用报错:
QQ_1721697786045
调用代码:
QQ_1721697820304
QQ_1721697869688
QQ_1721697884223

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

确认下是否是你自己的问题,如果架构有问题的话,demo和system之间的交互也会有这个问题

@yak33
Copy link
Author

yak33 commented Jul 24, 2024

我demo和system也会报401权限问题。难道不是因为FeignConfig没有传递Authorization信息吗?SAS版本而不是shiro
QQ_1721814069845

@yak33
Copy link
Author

yak33 commented Jul 24, 2024

我把依赖的项目jeecg-boot-starter3拉下来,改了改重新打包后,测试可以了
QQ_1721817973271
QQ_1721818239128

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