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>
报错行为:
<!-- 配置库连接 -->
<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>
相关文章推荐
- mybatis 项目配置 xml文件时 报错提示(Th 4000 e reference to entity "useSSL" must end with the ';' delimiter.)
- 在xml文件中配置数据库url需要带多个参数的时候IDE提示The reference to entity "characterEncoding" must end with the ';'
- 配置文件中出现 The reference to entity "XX" must end with the ';' delimiter. 错误提示
- xml文件中配置JDBC源遇到问题 : The reference to entity "characterEncoding" must end with the ';' delimiter
- 配置JNDI 报错 The reference to entity "characterEncoding" must end with the ';' delimiter
- SpringMVC的数据库配置dataSource报错处理:The reference to entity "characterEncoding" must end with the ';' deli
- The reference to entity "" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "ouml" must end with the ';' delimiter
- 【url】The reference to entity "characterEncoding" must end with the ';' delimiter
- dom4j:The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- 利用dom4j解析xml文件时发生The reference to entity password must end with the ';' delimiter.的解决方法
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "password" must end with the ';' delimiter.的原因跟解决方法
- The reference to entity "characterEncoding" must end with the ';' delimiter.
- The reference to entity "characterEncoding" must end with the ';' delimiter
- The reference to entity "autoReconnect" must end with the ';' delimiter.
- The reference to entity "characterEncoding" must end with the ';' delimiter.