java.sql.SQLException: Access denied for user ‘’@‘localhost’ (using password: NO)
密码明明是对的 却连接不上 我还改了次数据库密码都不行,最后破案了
将application.properties里的
他自动生成了下面这个
spring.datasource.data-username=root
spring.datasource.data-password=123456
再然后我改成这个
spring.datasource.data.username=root
spring.datasource.data.password=123
最后改为:
spring.datasource.username=root
spring.datasource.password=123
成功!
这个自动提示虽然很方便但有的时候还会小搞心态的0.0