上边这种配置方式 会报The reference to entity "useUnicode" must end with the ';' delimiter. 这个错误。
这是由xml文件中的编码规则决定要这么变换。在xml文件中有以下几类字符要进行转义替换:
正确的写法
xml中的一些配置转换表
< | < | 小于号 |
> | > | 大于号 |
& | & | 和 |
' | ' | 单引号 |
" | " | 双引号 |
上边这种配置方式 会报The reference to entity "useUnicode" must end with the ';' delimiter. 这个错误。
这是由xml文件中的编码规则决定要这么变换。在xml文件中有以下几类字符要进行转义替换:
正确的写法
xml中的一些配置转换表
< | < | 小于号 |
> | > | 大于号 |
& | & | 和 |
' | ' | 单引号 |
" | " | 双引号 |