错误:Could not get JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'admin'@'localhost' (using password: YES), mergedContextConfiguration = [MergedContextConfiguration@60dcc9fe testClass……
这个错误是因为在jdbc属性文件中起名username会和windows系统冲突,默认是系统管理员,所以需要修改数据库连接时的起名
修改错误之前,配置文件的命名
需要修改此处的username为其他值,例如user,之后在spring的配置文件中value值改为user即可
之后即可成功测试