MyBatis模糊查询不报错但查不出数据
测试方法:
第N次遇到数据库编码问题
现行条件:
第N次遇到数据库编码问题
sql语句:
第N次遇到数据库编码问题
日志信息:第N次遇到数据库编码问题
解决办法:
在jdbcConfig.properties中
jdbc.url=jdbc:mysql://localhost:3306/mybatis后面加上?characterEncoding=utf8指定编码集
遇到很多次这样的问题,都是因为编码集的问可能是数据库的原因。有空处理

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-12-06
  • 2021-11-08
  • 2021-07-26
  • 2021-05-09
猜你喜欢
  • 2021-12-02
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-06-08
  • 2021-06-21
  • 2021-07-18
相关资源
相似解决方案