mybatis整合springMVC的时候,eclipse后台提示:
Could not get a databaseId from dataSource
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'root'@'localhost' (using password: NO))Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
新建的mysql数据库 一般默认登录 root 密码123456 而我没有添加密码所以报错,在db.properties配置文件中密码改为123456,后即可成功登陆mysql数据库