**普通web项目连接druid出现报错:
com.alibaba.druid.pool.DruidDataSource.error create connection SQLException, url: jdbc:mysql://localhost:3306/java_demo?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC, errorCode 1045, state 28000
java.sql.SQLException: Access denied for user ‘’@‘localhost’ (using password: YES)
原因:
配置druid参数的xxx.xml文件中用户名必须写为username;密码为password,数据库地址为url。username不可写为user