记录:springBoot整合mybatis报错 java.sql.SQLException:Access denied for user 'root'@'localhost' (using password: YES) 密码需要用单引号或者双引号包裹,加上以后可以正常访问数据库。 spring: datasource: spring: datasource: url: *** username: **** password: '*****'