Spring Fox Swagger UI 掩码密码 [英] Spring Fox Swagger UI Mask Password
本文介绍了Spring Fox Swagger UI 掩码密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 Spring Fox Swagger UI,我在其中执行了许多操作,其中之一是发布到 Jira,它需要用户输入他们的用户名和密码.
I have a Spring Fox Swagger UI where I perform a number of operations, one of which is posting to Jira and it requires a user to input their username and password.
这个问题是密码没有屏蔽.
This issue is the password does not mask.
public ResponseEntity<?> createJiraIssue( @RequestParam(value = "jiraProject") @ApiParam(value = ParamConfig.PROJECT_DESC) String jiraProject,
@RequestParam(value = "qcPassword", required = false) @ApiParam(type = "string", format = "password", value = ParamConfig.QC_PASSWORD) String qcPassword ) throws CustomException,
IOException,
URISyntaxException
我添加了 type = "string", format = "password"
但它没有任何区别.
I added the type = "string", format = "password"
but it made no difference.
有什么想法吗?
推荐答案
这是一个已知问题,目前尚未修复
It is a known issue which currently is not fixed
https://github.com/swagger-api/swagger-core/issues/469https://github.com/springfox/springfox/issues/2366
目前没有解决方法.
这篇关于Spring Fox Swagger UI 掩码密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文