MySql-Access denied for user ''@'localhost' (using password: NO)
问题描述:
SpringBoot-Alibaba + JPA + MySql
Access denied for user ''@'localhost' (using password: NO)
spring: application: name: service-order datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/shop?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&autoReconnect=true
username: root password: root
参考:
Access denied for user ''@'localhost' (using password: NO)之idea坑~
解决方案:
IDEA自动补充的锅,数据库的用户名以及密码配置的参数名有问题,应该是:
----------------------------------------------------------------------------
我的小鱼你醒了,
还认识早晨吗?
昨夜你曾经说,
愿夜幕永不开启。
你的香腮边轻轻滑落的,
是你的泪,还是我的泪?
初吻吻别的那个季节,
不是已经哭过了吗?
我的指尖还记忆着,
你慌乱的心跳。
温柔的体香里,
那一缕长发飘飘。