[英]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.