![](/img/trans.png)
[英]How do I make sure my documentation is up to date with Spring Rest Docs?
[英]When using spring rest docs, how do I make a newline in the description?
我嘗試了 \n 或 br 標記來換行,但它不起作用。
requestParameters(
parameterWithName("name").description("This is the description <br/> in the table."),
<td class="tableblock halign-left valign-top"><p class="tableblock">This is the description <br/> in the table.</p></td>
如何在描述中換行?
您只需將字符串中的額外"+"
與換行符\n
結合起來。
parameterWithName("name").description("This is the description +" + "\n" + "in the table."),
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.