在applicationContext.xml中,将连接数据库的属性设置为如下
<property name="url"
value="jdbc:mysql://localhost:3306/healthclub?useUnicode=true&characterEncoding=utf-8">
</property>
数据库中字符集设置为utf-8
页面设置为utf-8
问题解决
在applicationContext.xml中,将连接数据库的属性设置为如下
<property name="url"
value="jdbc:mysql://localhost:3306/healthclub?useUnicode=true&characterEncoding=utf-8">
</property>
数据库中字符集设置为utf-8
页面设置为utf-8
问题解决