Access denied for user ‘MACHENIKE’@‘localhost’ (using password: YES)
项目场景:
整合mybatis和spring配置文件
问题描述:
Access denied for user ‘MACHENIKE’@‘localhost’ (using password: YES)
原因分析:
应该是Maven依赖里的版本问题
解决方案:
我是整合spring和mybaties时读取properties文件时会把username自动读取为我当前电脑的用户名,直接把${username}改成root就好了。
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!