[英]Any way to hide/fold swagger annotations in Eclipse?
您可以將字符串外部化為常量或屬性或yaml以獲取干凈的代碼
@ApiParam(value = "${swagger.sample.request.ApiParam.value}")
@RequestBody(required = true)
List request,
@ApiParam(value = DocumentationConstants.SAMPLE, required = true)
@RequestHeader(value = "sample", required = true)
String example,
參考: 外部化
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.