springBoot项目启动报错问题解决
springboot项目Access denied for user ‘’@‘localhost’ (using password: NO)问题解决
最近在学习springboot项目,整合mybatis出现以下问题提示我被拒绝访问,数据库啥的查了都没问题,最后发现!配置文件出问题了,如下
解决方法:
spring.datasource.data-username=root
spring.datasource.data-password=root
换成:
spring.datasource.datausername=root
spring.datasource.datapassword=root
就ok了