使用 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 <br/> in the table.</p></td>
如何在描述中换行?
您只需要将字符串中的额外 "+"
与换行符 \n
.
结合起来
parameterWithName("name").description("This is the description +" + "\n" + "in the table."),
我试过\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."),