在连接数据库的url后接useUnicode=true&characterEncoding=GBK(若GBK不行,可以改成其他编码方式试试)。
例如:jdbc:mysql://localhost:3306/homeworkdb?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=GBK
在连接数据库的url后接useUnicode=true&characterEncoding=GBK(若GBK不行,可以改成其他编码方式试试)。
例如:jdbc:mysql://localhost:3306/homeworkdb?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=GBK