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;

"

雙引號

相關文章
相關標籤/搜索