5

如何在 dbunit 数据集中插入换行符?像这样:

    <user id="1" 
story="first line
       second line
       third line"/>

如果我以这种方式执行此操作,则 db 中的字段故事仅显示为空格,但我需要换行符。

4

1 回答 1

7

Upps,我找到了解决方案:

<user id="1" 
story="first line&#13;&#10;second line&#13;&#10;third line"/>
于 2010-05-06T12:08:14.830 回答