the reference must with the ';' delimiter

The reference to entity "characterEncoding" mustmysql

                         end with the ';' delimitersql


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

JPA persistence xml 中报错的写法:spa

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

正确的写法:code

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


在xml文件中有如下几类字符要进行转义替换:utf-8

&lt;it

<io

小于号

&gt;

>

大于号

&amp;

&

&apos;

'

单引号

&quot;

"

双引号

相关文章
相关标签/搜索