博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
the reference must with the ';' delimiter
阅读量:6691 次
发布时间:2019-06-25

本文共 574 字,大约阅读时间需要 1 分钟。

hot3.png

The reference to entity "characterEncoding" must

                         end with the ';' delimiter

the reference to entity "characterEncoding" must end with the ';' delimiter :

JPA persistence xml 中报错的写法:

<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf-8" />

正确的写法:

<property name="hibernate.connection.url" value="jdbc:mysql://localhost:3306/test?useUnicode=true&amp;characterEncoding=utf-8" />

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

&lt;

<

小于号

&gt;

>

大于号

&amp;

&

&apos;

'

单引号

&quot;

"

双引号

转载于:https://my.oschina.net/u/1450300/blog/613448

你可能感兴趣的文章
iOS开发那些事--OCUnit测试框架
查看>>
foreman架构的引入7-Foreman结合mcollective完成push动作
查看>>
Tip:SCOM 2012 R2推送安装代理报错处理
查看>>
Drupal7配置之上传进度条
查看>>
《从零开始学Swift》学习笔记(Day 53)——do-try-catch错误处理模式
查看>>
一对一培训之视频免费分享-2018-05-03-SFB 2015-外部不能登录(排错笔记)
查看>>
“互联网+”:工业革命的需求与变革
查看>>
配置Lync Server 2010自动设置位置
查看>>
Centos 5.5 上面安装Open***完整版上篇【服务端配置】
查看>>
TCL微电影节、娱乐营销内容是王道
查看>>
Azure运维系列 6:使用自定义映像创建虚拟机
查看>>
如何对部署完成的Hyper-v 3.0群集进行验证
查看>>
华硕手机的策略之变
查看>>
你敢不敢打破“无形门”
查看>>
我的家庭私有云计划-10
查看>>
mysql删除binlog日志及日志恢复数据的方法
查看>>
八款开源 Android 游戏引擎 (巨好的资源)
查看>>
读书笔记:《重来REWORK》
查看>>
Emacs学习笔记(3):帮助系统
查看>>
Dynamic Proxy (动态代理模式)
查看>>