配置JNDI 报错 The reference to entity "characterEncoding" must end with the ';' delimiter
来源:互联网 发布:网络问卷的好处 编辑:程序博客网 时间:2024/05/10 09:49
<Context path="/bizsample" docBase="E:/行业版/eclipse/workspace/bizsample/WebApp">
<Resource auth="Container"
name="jdbc/bizsample"
type="MySql"
maxActive="3306"
maxIdle="4"
maxWait="10"
username="root"
password="admin"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/test?useUnicode=true;characterEncoding=utf-8" />
</Context>
上边这种配置方式 会报The reference to entity "characterEncoding" must end with the ';' delimiter 这个错误。
这是由xml文件中的编码规则决定要这么变换。
在xml文件中有以下几类字符要进行转义替换:
<
<
小于号
>
>
大于号
&
&
和
'
'
单引号
"
"
双引号
正确的方式
<Context path="/bizsample" docBase="E:/行业版/eclipse/workspace/bizsample/WebApp">
<Resource auth="Container"
name="jdbc/bizsample"
type="MySql"
maxActive="3306"
maxIdle="4"
maxWait="10"
username="root"
password="admin"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8" />
</Context>
- 配置JNDI 报错 The reference to entity "characterEncoding" must end with the ';' delimiter
- java报错:The reference to entity "characterEncoding" must end with the ';' delimiter.
- java报错:The reference to entity "characterEncoding" must end with the ';' delimiter.
- java报错: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
- 腾讯2012实习生笔试题2+答案解析
- myEclipse 常用快捷键
- 创建表空间+rename重命名+修改管理方式+resize大小
- PHP时间函数
- javascript从tr中分别获得每个td的元素
- 配置JNDI 报错 The reference to entity "characterEncoding" must end with the ';' delimiter
- 深入java虚拟机——多线程
- Linux内存管理Slab分配器
- Linux 进程管理(一)
- 开源图形库 c语言-图形图像库 集合
- 代码调试--先内核转储文件再gdb调试
- 用VC++5.0实现多线程的调度和处理
- VelocityTracker简介
- sh脚本编码问题