目录

一、问题描述:

二、报错原因:

三、正确写法:

四、其他:


一、问题描述:

在xml文件中的mysql链接URL报错:The reference to entity "characterEncoding" must end with the ';' delimiter。

二、报错原因:

原因是在XML文件中,& 符号需要转义。

<jdbcConnection driverClass="com.mysql.cj.jdbc.Driver"connectionURL="jdbc:mysql://localhost:3306/ssm_crud??serverTimezone=UTC&characterEncoding=utf8&useUnicode=true&useSSL=false"userId="root"password="root">
</jdbcConnection>

三、正确写法:

connectionURL="jdbc:mysql://localhost:3306/ssm_crud??serverTimezone=UTC&amp;characterEncoding=utf8&amp;useUnicode=true&amp;useSSL=false"

四、其他:

在xml文件中有以下几类字符要进行转义替换:

xml文件报错:The reference to entity “characterEncoding“ must end with the ‘;‘ delimiter.相关推荐

  1. python打开xml文件报错:UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xb7 in position 58: illegal multi

    本篇文章主要讲解,python打开xml文件报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xb7 in position 58: ille ...

  2. 服务器解析xml文件报错:org.dom4j.DocumentException: Error on line -1 of document

    服务器解析xml文件报错:org.dom4j.DocumentException: Error on line -1 of document  : Premature end of file. Nes ...

  3. 已解决(Python读取xml文件报错)xmL.etree.ELementTree.ParseError:not well-formed (invalid token): Line

    已解决(Python读取xml文件报错)xmL.etree.ELementTree.ParseError:not well-formed (invalid token): Line 文章目录 报错信息 ...

  4. Castor 解析xml文件报错org.exolab.castor.xml.MarshalException

    Castor 解析xml文件报错org.exolab.castor.xml.MarshalException: Illegal Text data found as child of org.exol ...

  5. Maven项目中pox.xml文件报错以及项目编译错误

    我用Eclipse开发Maven项目,本来好好的,但是后来莫名其妙的其中pom.xml文件报错,后来执行install命令时又编译不通过报错.我痛苦地摸索了一整天,最后才把问题解决了.虽然问题解决了, ...

  6. 解决Maven项目中pom.xml文件报错(Failure to transfer....)的问题

    解决Maven项目中pom.xml文件报错(Failure to transfer....)的问题 参考文章: (1)解决Maven项目中pom.xml文件报错(Failure to transfer ...

  7. The reference to entity characterEncoding must end with the ';' delimiter

    数据源配置时加上编码转换格式后出问题了: The reference to entity "characterEncoding" must end with the ';' del ...

  8. laravel上传文件报错:413 Request Entity Too Large

    上传图片的时候,是用laravel自带的上传图片的方法,一下气上传了20张,结果就无情报错: 413 Request Entity Too Large,后面查一下,这个报错信息是nginx报的错误,不 ...

  9. python解析XML文件报错 entity not defined Entity ndash not defined

    报错 在处理数据集时需要解析xml文件获取需要的数据,一开始采用python自带的xml模块来做,即xml.dom.minidom,然后报错 entity not defined 也没显示是在xml文 ...

最新文章

  1. java使用Calendar类获取常用简单工具类
  2. 计算机地质应用软件,中国地质大学《质软件应用》作业报告.doc
  3. Python多进程编程-进程间共享 对象
  4. Leetcode 46.全排列 (每日一题 20210621)
  5. Atom 编辑器实时预览 HTML 页面
  6. 多媒体文件格式之TS
  7. 从二值检索到层次竞买图——让搜索广告关键词召回焕然新生
  8. Acwing1086. 恨7不成妻(未解决)
  9. php语法高亮编辑器,最新PHPCMS V9编辑器代码高亮显示亲测可用(提前格式化)
  10. 软件测试宝藏图_tSQLt –数据库单元测试中被遗忘的宝藏
  11. matlab仿真零中频接收机技术,经典又实用的零中频接收机的技术解决方案
  12. 【麦子学院 彭亮 机器学习】3.2决策树应用(准备篇)
  13. CxImage 初识
  14. 按发动机排量征收汽车消费税是不合理的,应该按燃烧室容积征税
  15. 预产期计算器在线计算生男生女计算机,预产期计算器生男生女在线查询-预产期计算器及天数计算时间软件2017版-腾牛安卓网...
  16. excel如何打开100万行以上的csv文件
  17. 517.Super Washing Machines
  18. 原码、反码、补码、移码 基本介绍
  19. rm -rf xxx遇到device or resource busy
  20. (七)Spring Security (spring-cloud-starter-oauth2)应用详解------认证授权服务------授权码模式和密码模式

热门文章

  1. 微信和平精英服务器怎么填,《和平精英》微信游戏名片怎么设置 微信游戏名片设置方法教程...
  2. 联想微型计算机电脑黑屏怎么做系统,联想台式电脑开机黑屏怎么修复 电脑黑屏教程...
  3. Android禁用截屏功能
  4. 安装完MSBuild (Visual C++ 2015)平台工具集,项目属性页怎么都是英文?有办法解决!
  5. WebRTC中的NAT穿透
  6. Hash-AV: Fast Virus Signature Scanning by Cache-Resident Filters 译
  7. 《仙剑奇侠传5》正由北京软星开发中
  8. Vmware ESXI 虚拟化
  9. 通过OneDrive下载Google Photos里的照片
  10. 天猫这些规则你还不知道就摊上大事了