使用springboot,连接mysql,配置信息如下:
报错信息如下:
com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql://localhost:3306/ssm_db?serverTimezone=UTC, errorCode 1045, state 28000
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
解决办法:
把password的值用单引号包起来