提到
url
像:
jdbc:mysql://hostname:3306/hibernatedb?autoReconnect=true&useSSL=false
但是在xml配置中
&
签名,IDE显示以下错误:
The reference to entity "useSSL" must end with the ';' delimiter.
然后你必须显式地使用
&
而不是
&
确定为
&
通过
xml
此后
XML
您必须以XML配置提供URL,如下所示:
<property name="connection.url">jdbc:mysql://hostname:3306/hibernatedb?autoReconnect=true&useSSL=false</property>