最近在配置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>