The reference to entity "characterEncoding" must end with the ';' delimiter. ,url中的&转义
来源:互联网 发布:熊猫加速器mac 编辑:程序博客网 时间:2024/06/01 22:15
Java 解析XML文件错误。
错误信息提示代码类似如下:
The reference to entity "characterEncoding" must end with the ';' delimiter.
org.xml.sax.SAXParseException: The reference to entity "characterEncoding" must end with the ';' delimiter.
或
ontext initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreEx
纠错结果:
我在配置一个访问数据库的Url时,第一次设置的内容如下:
jdbc:mysql://localhost:3306/photo?useUnicode=true&characterEncoding=UTF-8,注意中间那个“&”,在xml中这个是读不出的哦,那么应该怎么改呢?我采取了一个折衷的方法,不过真的可以了:
jdbc:mysql://localhost:3306/photo?useUnicode=true&characterEncoding=UTF-8
分析:
有时候在使用xml作为配置文件的时候,应该要使用xml的编码规则来进行适当的设置。
下面给出xml中一些特殊符号的编码转换:
- The reference to entity "characterEncoding" must end with the ';' delimiter. ,url中的&转义
- The reference to entity "characterEncoding" 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 "characterEncoding" 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 "characterEncoding" 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 "characterEncoding" 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 "characterEncoding" 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 "characterEncoding" must end with the ';' delimiter.
- The reference to entity "characterEncoding" must end with the ';' delimiter
- python基础 26章 项目7 自定义电子公告板
- Linux进程环境变量简介
- Linux文件系统
- 2017-05-22
- Oracle 11g R2静默安装
- The reference to entity "characterEncoding" must end with the ';' delimiter. ,url中的&转义
- mysql学生成绩排名,分组取前 N 条记录
- 软件分层架构理解【小白专用】
- 使用freemarker生成复杂的excel表格
- 从零开始写javaweb框架笔记13-搭建轻量级JAVAWEB框架-开发一个类加载器
- 九度1028:继续畅通工程
- 高并发服务器架构笔记(3)——muduo_base 源码分析
- 根据多个索引高效删除python list中对应位置的元素
- pyhton 数据预处理 数据读取与存储 csv