错误信息:
The reference to entity “characterEncoding” must end with the ‘;’ delimiter.
分析:
Java 解析XML文件错误。
jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8
中间的“&”,在xml中这个是读不出的,正确写法将 & 转义 &
解决方法:
jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8 改为:
jdbc:mysql://localhost:3306/ssm?useUnicode=true&characterEncoding=UTF-8