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

请问在baserequest 中如何通过一个对象名设置公共的header #43

Closed
lianbitangjin opened this issue May 27, 2021 · 2 comments

Comments

@lianbitangjin
Copy link

目前在baserequest只有设置字符串类型变量的header

@mySingleLive
Copy link
Collaborator

@BaseRequest注解只支持一个一个key-value形式的请求头定义,可以使用${obj.prop1}, ${obj.prop2}这样形式的字符串模板来引用参数传入的对象,但定义的请求头的数量只能是写死的

@lianbitangjin
Copy link
Author

@BaseRequest注解只支持一个一个key-value形式的请求头定义,可以使用${obj.prop1}, ${obj.prop2}这样形式的字符串模板来引用参数传入的对象,但定义的请求头的数量只能是写死的

ok,明白了

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