jboot swagger里面能加入header参数吗?怎么配置?

your233 发布于 2018/03/25 10:55
阅读 1K+
收藏 0

【开源中国 APP 全新上线】“动弹” 回归、集成大模型对话、畅读技术报告”

请问jboot swagger里面能加入header参数吗?怎么配置?

加载中
0
your233
your233

已解决:直接使用
@ApiImplicitParam(name = "xx", value = "ID", paramType = ParamType.HEADER, dataType = "string", required = true),

0
g
geeku

你配置完swagger能直接在前端页面用json参数请求吗?

your233
your233
@ApiImplicitParam(name = "xx", value = "ID", paramType = ParamType.HEADER, dataType = "string", required = true),
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部