spring - 使用 spring rest 文档时,如何在描述中换行?
问题描述
我尝试了 \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."),
推荐阅读
- c - 为什么 C 中的此表达式的精度存在偏差?
- python - 使用文本数据反透视熊猫数据框
- php - 我尝试使用 Laravel Storage 下载文件,但浏览器出错
- c# - 奇数和零星的 Chrome 错误:分块的 cookie 不完整
- sql - Microsoft SQL Server 2016 安装程序
- react-native - 在 React Native 中构建 Apk 失败
- sql - 选择引用工作表索引的 SQL 查询
- css - 使用 Chrome 的 CSS 滚动捕捉
- javascript - 如何通过将响应的结果与 Vue.js 中路由的动态参数组合来动态获取数据
- google-geolocation - 地理位置 API:未找到请求的实体