1.检查JDBC中mysql的驱动是否加上了这个:
jdbc:mysql://localhost:3306/db_book?useUnicode=true&characterEncoding=UTF-8
2.查看JAVA的IDE是否为UTF-8编码
3.查看数据库是否UTF-8编码
原文地址:https://www.cnblogs.com/liuyuxing1024/p/10384771.html
时间: 2024-11-09 00:29:17
jdbc:mysql://localhost:3306/db_book?useUnicode=true&characterEncoding=UTF-8
原文地址:https://www.cnblogs.com/liuyuxing1024/p/10384771.html