原文:Error updating database. Cause: java.sql.SQLException: Access denied for user '${username}'@'localhost' (using password: YES)

導入別人的項目,出現一個錯誤,經過排查,是db.properties配置文件中的用戶名與Mybatis conf.xml配置文件中調用的用戶名不一致所導致的 db.properties中用的是name,而調用時用的確實username ,即 username ,只要把配置文件中的name改為username即可。 截圖如下: ...

2018-02-08 17:36 0 8019 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM