Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project user-center: Access denied for user ‘root’@‘localhost’ (using password: YES)
记录一次springBoot整合mybatis自动生成xml遇到的一个坑
现象:Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.6:generate (default-cli) on project user-center: Access denied for user ‘root’@‘localhost’ (using password: YES)
过程:网上搜索了一波,说插件版本不匹配什么的,然后试了下,还是没能解决掉。后来仔细检查了generatorConfig.xml和config.properties ,最终发现是jdbc.password的密码写错了导致的,后来改了密码,重新执行 mybaits-generator:generate,这次没有报这个错了。