错误信息如下:
### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE cod.name='段å?' and cod.DESCRIPTION like '%' '段å?' at line 12
在总的配置文件configuration。xml文件中找到链接数据库的属性,指定数据库编码解析为utf-8。
<property name="url" value="jdbc:mysql://127.0.0.1:3306/micro_message"/>