查询数据库的时候报这个异常,但是在window电脑就没问题,单独用jdbc连接可以,但是用框架报这个错,数据库的密码也正确,MySQL的user也是root,是Macos的原因吗,求大神
十一月 05, 2019 11:28:53 下午 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet [dispatcherServlet] in context with path [/easyUI] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'huang'@'localhost' (using password: YES))
### The error may exist in class path resource [com/huibo/po/userMapper.xml]
### The error may involve com.huibo.dao.UserDao.select
### The error occurred while executing a query
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Access denied for user 'huang'@'localhost' (using password: YES))] with root cause
java.sql.SQLException: Access denied for user 'huang'@'localhost' (using password: YES)