簡體   English   中英

使用 spring rest 文檔時,如何在說明中換行?

[英]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 &lt;br/&gt; 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.

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