最贊回答 / hurryyuan
在數據庫腳本文件開頭加入一行 set character set utf8將[mysql]下的default-character-set=latin1改為default-character-set=utf8
2016-11-18
最新回答 / 小羊楊
this.id = (int)map.get("id"); this.stuName = (String)map.get(stuName)前面id加了“”為啥后面的都不加 。this.id = (int)map.get("id"); this.stuName = (String)map.get("stuName")都加""試試。
2016-09-30
最新回答 / 孔孔孔孔
問題解決了,connection = DriverManager.getConnection(URL,USERNAME,PASSWORD)中,只寫了URL就會導致這個錯誤
2016-09-01