menu 李昊天的个人博客
SSM项目运行错误,显示的数据库用户名与配置文件不同
827 浏览 | 2020-02-12 | 分类:踩坑爬出记录 | 标签:SSM,问题解决

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
知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议

发表评论

email
web

全部评论 (暂无评论)

info 还没有任何评论,你来说两句呐!