您当前的位置: 首页 >  ar

qq_34412985

暂无认证

  • 0浏览

    0关注

    1061博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

报错The reference to entity “characterEncoding“ must end with the ‘;‘ delimiter

qq_34412985 发布时间:2021-01-10 12:52:07 ,浏览量:0

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

数据源配置时加上编码转换格式后出问题了:

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

这个错误就是 context.xml中设置数据源链接URL的问题   

    url

    jdbc:mysql://localhost:3306/bookstore?useUnicode=true&characterEncoding=UTF-8

正确的如下:

    url

    jdbc:mysql://localhost:3306/bookstore?useUnicode=true&characterEncoding=UTF-8

这大概是由xml文件中的编码规则决定要这么变换。

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

<

大于号

&

&

'

'

单引号

"

"

双引号

关注
打赏
1653291990
查看更多评论
立即登录/注册

微信扫码登录

0.0419s