- 1 Unsupported character encoding ‘’
說明application.properties的數據庫連接爲配置好,應爲
spring.datasource.url=jdbc:mysql://localhost:3306/news?useUnicode=true&&characterEncoding=UTF-8&autoReconnect=true
- 2 Could not create connection to database server. Attempted reconnect 3 times. Giving up.說明缺少:時區配置
應將上面代碼改爲:
spring.datasource.url=jdbc:mysql://localhost:3306/news?useUnicode=true&&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=UTC
- 3 修改默認註釋
進行如圖操作,並點擊Apply即可 (若是修改方法的註釋模板,不選擇Types,選擇Methods)
- 4 eclipse中文源碼註釋亂碼
- 5 項目上傳至github
- 6 項目github地址