java - How to specify the character encoding of Mybatis? -
here problem.
there fact table in kylin has column named "name".
when access table using jdbc, ok.
use mybatis connect same jdbcurl.
mess when read column "name".
don't know why.
it turns out problem maven.the "jdbc program" started directly in ide, while "mybatis program" started "mvn test".the problem solved adding property in pom.xml showed below.
<argline>-dfile.encoding=utf-8</argline>
Comments
Post a Comment