在开发中,有时候需要给字符类型的属性注入比较复杂的字符串,比如sql,比如xml文件内容,可以同如下的方式注入
<property name="xxxx">
<value>
<![CDATA[
.........
]]>
</value>
</property>