Spring boot 遇到的错误

手撸的application.properties中有个大坑,就是配置数据库的用户名的时候,它有两种表示用户名的方式:

分别是spring.datasource.username 和spring.datasource.name;

大坑就是你如果用了name,就会报错;具体的报错如下:Access denied for user ''@'localhost' (using password: YES)

 

猜你喜欢

转载自blog.csdn.net/Lujunwei0205/article/details/81136893