解决java.sql.SQLException: Access denied for user ‘Lenovo‘@‘localhost‘ (using password: YES)问题~

错误描述如下:用户访问被拒绝

解决java.sql.SQLException: Access denied for user ‘Lenovo‘@‘localhost‘ (using password: YES)问题~_第1张图片

解决方案:

第一步:在jdbc.properties文件中进行如下修改:

解决java.sql.SQLException: Access denied for user ‘Lenovo‘@‘localhost‘ (using password: YES)问题~_第2张图片

第二步:在spring-transaction.xml中进行如下修改:

解决java.sql.SQLException: Access denied for user ‘Lenovo‘@‘localhost‘ (using password: YES)问题~_第3张图片

你可能感兴趣的:(mistakes,java,spring,数据库,mybatis)