使用springrest文档时,如何在描述中换行?

oxalkeyp  于 2021-07-13  发布在  Java
关注(0)|答案(1)|浏览(279)

我尝试\n或br tag生成新行,但无效。

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>

如何在描述中换行?

b4lqfgs4

b4lqfgs41#

你只需要结合一个额外的 "+" 在具有换行符的字符串中 \n .

parameterWithName("name").description("This is the description +" + "\n" + "in the table."),

相关问题