异常问题
- java.sql.SQLException: Access denied for user ‘’@‘xxx.xxx.xxx.1’ (using password: YES)
- 解决方案,应该注意yml属性中的键名不能出现jdbc-url、driver-class-name
- 原因,查看DataSourceProperties的成员属性可以知道,部分源码中的属性部分,如下显示
/**
* Fully qualified name of the JDBC driver.
* Auto-detected based on the URL by default.
*/
private String driverClassName;
/**
* JDBC URL of the database.
*/
private String url;
/**
* Login username of the database.
*/
private String username;
/**
* Login password of the database.
*/</