The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone....

時區的錯誤,因此只要將時區設置爲你當前系統時區即可

在cmd 進入mysql

mysql -u root -p

輸入:

show variables like '%time_zone%';

會出現
這裏寫圖片描述

再輸入;

set global time_zone='+8:00';

或者直接將 url改爲:

"jdbc:mysql://localhost:3306/shiro_test?serverTimezone=GMT%2B8"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章