Caused by: org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user '16348'@'localhost' (using password: YES))
原配置文件
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost:3306/epet?useUnicode=true&characterEncoding=utf8
username=root
password=root
解决方法:在属性前加jdbc.
将配置文件该为:
jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/epet?useUnicode=true&characterEncoding=utf8 jdbc.username=epetadmin jdbc.password=root
spring配置文件改为



