Caused by: com.mysql.cj.exceptions.CJException: Access denied for user 'root'@'localhost' (using password: YES)
数据库的连接用
spring.datasource.username=root spring.datasource.password=
不要用
spring.datasource.data-username= spring.datasource.data-password=
给你参考一下