簡體   English   中英

有什么方法可以在Eclipse中隱藏/折疊招搖注解?

[英]Any way to hide/fold swagger annotations in Eclipse?

我的控制器有一些帶有大量描述的搖搖欲墜的注釋。 這會使文件混亂並且難以跟蹤代碼。

文件中使用的示例代碼塊Swagger批注

有什么方法可以在日食中隱藏或折疊招搖或其他注釋。

您可以將字符串外部化為常量或屬性或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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM