xml文件中配置JDBC源遇到问题 : The reference to entity "characterEncoding" must end with the ';' delimiter

xml文件中配置JDBC源遇到问题 : The reference to entity “characterEncoding” must end with the ‘;’ delimiter
错误写法:

<property name="jdbcUrl">jdbc:mysql://47.106.153.177:3306/xiaoxuan?useUnicode=true&characterEncoding=utf-8&useSSL=false</property> 

正确写法:

<property name="jdbcUrl">jdbc:mysql://47.106.153.177:3306/xiaoxuan?useUnicode=true&amp;characterEncoding=utf-8&amp;useSSL=false</property>

参考:https://blog.csdn.net/sinat_25306771/article/details/53921058

猜你喜欢

转载自blog.csdn.net/ken1583096683/article/details/80953097