解決java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
如果mysql賬號密碼正確的情況下,可以試一下後邊加上這些參數:
url: jdbc:mysql://localhost:3306/demo0619?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true