SSM项目运行错误,显示的数据库用户名与配置文件不同
运行时提示错误
显示的用户名和与我的配置文件不同,但是正好是我的windows系统名字
原配置
driver=com.mysql.jdbc.Driver
url=jdbc:mysql://blog.wmgx.top:3306/PhotoAlbum?useSSL=true&useUnicode=true&characterEncoding=utf8
username=username
password=password
加上一个前缀问题解决
mysql.driver=com.mysql.jdbc.Driver
mysql.url=jdbc:mysql://blog.wmgx.top:3306/PhotoAlbum?useSSL=true&useUnicode=true&characterEncoding=utf8
mysql.username=username
mysql.password=password
评论区