- 如图:
- 在数据库url后面加上
characterEncoding=UTF-8
能解决问题:
完整的:
jdbc:mysql://localhost:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
characterEncoding=UTF-8
能解决问题:jdbc:mysql://localhost:3306/数据库名?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai