解决方案很简单,就是把配置项值中用到"&"的地方改成"&"。原因是sax解析的类库在读取文件的时候是根据转义后的格式进行读取的,遇到"&"就认为是一个转义字符串,开始找结束符";",找不到自然就报错了。
相关文章
- 04-04The reference to entity “idNo” must end with the ';' delimiter 异常处理
- 04-04在配置XML时报的The reference to entity "dataSource" must end with the ';' delimiter错误
- 04-04xml文件报错:The reference to entity "characterEncoding" must end with the ';' delimiter.
- 04-04The reference to entity “XX“ must end with the ‘;‘ delimiter.
- 04-04The reference to entity "characterEncoding" must end with the ';' delimiter