<?xml version="1.0" encoding="UTF-8"?>
<ECharts>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=teacher_sex&dataSource=UTADB</element>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=title-number&dataSource=UTADB</element>
</ECharts>
在配置XML的时,以上代码会报The reference to entity "dataSource" must end with the ';' delimiter错误
解决方案:在&后面加入amp;
<?xml version="1.0" encoding="UTF-8"?>
<ECharts>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=teacher_sex&dataSource=UTADB</element>
<element>http://localhost:8080/EChartDynamic/DEcharts_bar1?flag=title-number&dataSource=UTADB</element>
</ECharts>