错误原因: properties.yml文件中对特殊字符处理,可以使用双引号包裹起来作为字符解析
1. 密码未加双引号
则报错 Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
2.对密码加双引号
即解决