mybatis层的问题,最后发现是要在连接数据库的url那里加字符编码的设置 jdbc.url=jdbc:mysql://localhost:3306/ssm_db?useUnicode=true&characterEncoding=utf-8