hibernater 自動生成 數(shù)據(jù)庫亂碼
老師我用hibernate 自動映射的數(shù)據(jù)創(chuàng)建的數(shù)據(jù)表 怎么都中文亂碼,我配置文件都和你的配的一樣
? jdbc:mysql:///hibernate?useUnicode=true&characterEncoding=UTF-8
我用的mysql數(shù)據(jù)庫
老師我用hibernate 自動映射的數(shù)據(jù)創(chuàng)建的數(shù)據(jù)表 怎么都中文亂碼,我配置文件都和你的配的一樣
? jdbc:mysql:///hibernate?useUnicode=true&characterEncoding=UTF-8
我用的mysql數(shù)據(jù)庫
2017-03-01
舉報
2017-05-23
你在mysql里執(zhí)行一下:?SET NAMES GBK;
2017-03-02
你的數(shù)據(jù)庫亂碼有可能是你的數(shù)據(jù)庫在安裝的時候編碼選錯了,
2017-03-01
可能是你的編譯器默認編碼不是utf-8吧。你查看一下編譯器的默認編碼,看看是不是utf-8.