有这个问题:
<context-param>
<param-name>URL</param-name>
<param-value>jdbc:mysql://localhost:3306/Test?
serverTimezone=Europe/Kiev&autoReconnect=true&useSSL=false</param-value>
</context-param>
参数值返回以下错误:
The reference to entity "autoReconnect" must end with the ';' delimiter.
我发现的最清楚的事情 -
问号“?” 不是 XML 下的特殊字符,但 & 号是。但是,您只需将其表示为“&”,一切正常。
我试过这个选项
jdbc:mysql://localhost:3306/baza1250?autoReconnect=true&characterEncoding=cp1250 (在评论中找到)
不起作用...同样的错误。
在 XML 中,必须对 & 字符进行转义。无论哪种方式
无论哪种方式