配置如下:
<property name="connection.url">
jdbc:mysql://localhost/sc?useUnicode=true&characterEncoding=UTF-8
</property>
这个url在jdbc中使用是没有问题的,但在hibernate中却不能通过,eclipse报出"The reference to entity "characterEncoding" must end with the ';' delimiter"的错误,为什么?我在characterEncoding后加上';'也不起作用。
<property name="connection.url">
jdbc:mysql://localhost/sc?useUnicode=true&characterEncoding=UTF-8
</property>
这个url在jdbc中使用是没有问题的,但在hibernate中却不能通过,eclipse报出"The reference to entity "characterEncoding" must end with the ';' delimiter"的错误,为什么?我在characterEncoding后加上';'也不起作用。
<![CDATA[jdbc:mysql://localhost/sc?useUnicode=true&characterEncoding=UTF-8]]>