An error prompt is reported when the mybatis project configures the xml file (The reference to entity “useSSL” must end with the';' delimiter.)

There have been many problems when using mybatis recently, and it seems that my mastery is indeed not solid. This time when configuring the xml file, an error message (
The reference to entity “useSSL” must end with the';' delimiter.)
error behavior appears

<property name="url" value="jdbc:mysql://www.xxxx.com:3306/db?characterEncoding=utf8&useSSL=false"/>

When linking jdbc, the path link parameter has always been connected with the & symbol before, but this time it was prompted to use; to connect, wtf!
So I changed the & to; according to the prompt of the compiler, so it took the two parameters as the operation A parameter, OhMyGod!
finally found the problem after some thoughtless exploration. The ampersand in the xml file needs to be escaped. This is changed according to the HTML escape rules
& -> & so it is solved.

<property name="url" value="jdbc:mysql://www.xxxx.com:3306/db?characterEncoding=utf8&amp;useSSL=false"/>

Guess you like

Origin blog.csdn.net/weixin_44556968/article/details/109785103