Caused by: java.sql.SQLException: Access denied for user 'null' with host '2

1、修改配置文件:

datasource:
   url: jdbc:mysql://XXXXXXX:XXXX/onechat
   #sername: root
   username: root
   password: root
   driver-class: com.mysql.jdbc.Driver

2、出现的问题

  用户名错误:#sername: root

发布了36 篇原创文章 · 获赞 0 · 访问量 940

猜你喜欢

转载自blog.csdn.net/ityw520/article/details/104118830