查看application.properties配置文件中的

spring.datasource.url 配置

在数据库后面加上以下这断来指定编码格式
useSSL=false&useUnicode=true&characterEncoding=UTF-8

  

同样的sql语句在数据库中能查出结果,但是在java springboot项目中,查不出来

相关文章:

  • 2021-04-20
  • 2022-12-23
  • 2021-04-02
  • 2022-01-01
  • 2021-07-08
  • 2021-06-23
  • 2021-08-31
  • 2022-12-23
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-01
  • 2021-09-28
  • 2022-12-23
相关资源
相似解决方案