我在数据源配置中是这么写的,不知道对不对,请各位指点:
<set-property property="url" value="jdbc:mysql://26.28.238.52/sunNet?useUnicode=true&characterEncoding=gb2312;"/>Tomcat报错如下:
org.xml.SAXParseException: The reference to Entity "characterEncoding" must end with the ";",delimiter.请各位指点迷津,谢谢!
<set-property property="url" value="jdbc:mysql://26.28.238.52/sunNet?useUnicode=true&characterEncoding=gb2312;"/>Tomcat报错如下:
org.xml.SAXParseException: The reference to Entity "characterEncoding" must end with the ";",delimiter.请各位指点迷津,谢谢!
"&" 转义一下..试试.具体么样写忘了..