蜡笔小新222
2020-03-14 11:25
Caused by: com.mysql.cj.exceptions.CJException: Access denied for user 'root'@'localhost' (using password: YES)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
数据库密码不对吧
你可能用户名密码写成data-username,data-password,应该写成: spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/luckymoney?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai username: password:
没有设置默认 , 他自己用dev的application了 , 这就很奇怪
基于SpringBoot 十分钟搞定后台管理平台
42417 学习 · 201 问题
相似问题
回答 1
回答 2