使用使用db.properties配置后
出错代码
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:jdbc:mysql://localhost:3306/mbtest //不明白当是什么前头写两个jdbc,粗心大意
jdbc.username=root
jdbc.password=1234
报错提示
大致意思是
SQLException异常:没有合适的驱动发现为jdbc:jdbc:mysql:/ / localhost:3306 / mbt
纠正代码
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url= jdbc:mysql://localhost/mbtest?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=1234
暂时_解决总结:jdbc.url 格式不正确