因此在數據庫中添加下面的語句,修改編碼:數據庫
ALTER TABLE roles CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;編碼
ALTER TABLE roles CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
就沒有再報錯了~code