您的位置:首页 > Web前端

mybatis 项目配置 xml文件时 报错提示(The reference to entity "useSSL" must end with the ';'

2017-09-05 09:46 471 查看
最近在配置mybatis项目的xml配置文件的时候,出现错误提示( The reference to entity “useSSL” must end with the ‘;’ delimiter.) 

报错行为:

<!-- 配置库连接 -->
<jdbcConnection
driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/ssm_crud?serverTimezone=GMT&useSSL=false"
userId="root"
password="142014068">
</jdbcConnection>

在没头没脑的一番探索后,终于发现问题,在xml文件中 &符号 需要转义 这个根据 HTML 的转义规则 更改就行 
& -> 
&
 于是便解决了

<!-- 配置库连接 -->
<jdbcConnection
driverClass="com.mysql.cj.jdbc.Driver"
connectionURL="jdbc:mysql://localhost:3306/ssm_crud?serverTimezone=GMT&useSSL=false"
userId="root"
password="142014068">
</jdbcConnection>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐