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&characterEncoding=utf-8" />
在xml文件中有以下几类字符要进行转义替换:
<
<
小于号
>
>
大于号
&
&
和
'
'
单引号
"
"
双引号