<div th:utext="${#strings.unescapeJava(#strings.replace(#strings.escapeJava(绑定数据字段),'\n','<br/>'))}"></div>
参考:https://blog.csdn.net/xielinrui123/article/details/87979352
<div th:utext="${#strings.unescapeJava(#strings.replace(#strings.escapeJava(绑定数据字段),'\n','<br/>'))}"></div>
参考:https://blog.csdn.net/xielinrui123/article/details/87979352
本文标题:Thymleaf绑定数据中有换行符不换行
本文链接:https://www.haomeiwen.com/subject/yahnehtx.html
网友评论