這是使用Spring boot 建立資料庫連線遇到的問題
解決方法
在後方加入?serverTimezone=UTC
如果要解決中文亂碼問題
也可以加入?useUnicode=true&characterEncoding=UTF-8
合起來可以 ?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
出現在專案上面冒紅線, 並有紅字invalid packing...... 在本專案的原因是, 這裡有母子專案 有在子專案pom檔中聲明parent <parent> <artifactId> heima-leadnews-test </a...
沒有留言:
張貼留言