错误1:Error creating document instance. Cause: org.xml.sax.SAXParseException; lineNumber: 16; columnNumber: 102; 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾。
解决:在xml配置文件中配置数据库utl时,要使用&的转义字符也就是&
<property name="url" value="jdbc:mysql://localhost:3306/email?useUnicode=true&characterEncoding=UTF-8" />
错误2:
Unknown initial character set index '255' received from server. Initial client character
解决:加上黄色背景的字串
<property name="url" value="jdbc:mysql://localhost:3306/email?useUnicode=true&characterEncoding=UTF-8" />