原因:配置文件里
user=root
password=123456
url=jdbc:mysql://localhost:3306/数据库名?characterEncoding=utf8&useSSL=false&serverTimezone=GMT%2B8&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true
driverClass=com.mysql.cj.jdbc.Driver
initialSize=5
maxActive=10
用user是错的,需要用username