Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Card record=new Card(); record.setName("你好");
我将name字段设置为中文,但显示为“???” 在数据库中。我该如何配置它?
操作系统:MAC OSX 10.8 数据库:MySQL
试试这样:
jdbc:mysql://localhost:<portnumber>/<dbname>?characterEncoding=utf8
在 JDBC 连接字符串中