mybatis模糊查询为空

之前代码是这样的:


运行结果:


可以看到结果返回的是空的集合。

之后在数据库地址后面加上?useUnicode=true&characterEncoding=utf-8这个代码就可以了





运行结果:


猜你喜欢

转载自blog.csdn.net/IT_private/article/details/80990621