疯狂的狮子Li
2022-02-18 d53dc28b83026ef7334361d927c33c37b89ec9a4
!141 修正 StringUtils.format() 注释错误问题
Merge pull request !141 from KonBAI/fix_StringUtils_Note
已修改1个文件
2 ■■■ 文件已修改
ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-common/src/main/java/com/ruoyi/common/utils/StringUtils.java
@@ -86,7 +86,7 @@
     * 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可<br>
     * 例:<br>
     * 通常使用:format("this is {} for {}", "a", "b") -> this is a for b<br>
     * 转义{}: format("this is \\{} for {}", "a", "b") -> this is \{} for a<br>
     * 转义{}: format("this is \\{} for {}", "a", "b") -> this is {} for a<br>
     * 转义\: format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br>
     *
     * @param template 文本模板,被替换的部分用 {} 表示