MyBatis下MySqL用户口令不能为空

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3308/test
jdbc.username=test
jdbc.password=test

 

如果数据库设置密码为空,在配置文件里也留空的话,不能连接。

posted @ 2018-01-16 11:32  zhaogaojian  阅读(502)  评论(0编辑  收藏  举报