问题原因mysql是8.0 springboot里面写的是com.mysql.jdbc.Driver com.mysql.cj.jdbc.Driver 连接数据库的url中,加上allowPublicKeyRetrieval=true