ssm,c3p0, Access denied for user 'xx'@'localhost' (using password: YES)
ssm整合的时候,用的c3p0连接池,数据库配置文件如下
database.properties
driver=com.mysql.cj.jdbc.Driver
url=jdbc:mysql://localhost:3306/ssmbuild?useSSL=false&serverTimezone= UTC&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true
username=root
password=root
把username改成user即可
具体原因不知道,小白一枚