java.sql.SQLException: connect error, url jdbc:mysql//127.0.0.1:3306/miaosha, driverClass com.mysql.jdbc.Driver
请教各位大神:
启动项目没报错,浏览器一输入 localhost:8090就报错,下面几行一直反复的出,不知道问题在哪
(初看是连接数据库出错,但是用户名和密码肯定没错.用Navcat测试连接成功,并且也能用myabtis-generator生成了UserDO和UserPasswordDO)
2021-07-31 16:15:58.294 ERROR 4812 --- [reate-425446155] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql//127.0.0.1:3306/miaosha, errorCode 0, state null
java.sql.SQLException: connect error, url jdbc:mysql//127.0.0.1:3306/miaosha, driverClass com.mysql.jdbc.Driver
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1640) ~[druid-1.1.13.jar:1.1.13]
at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2550) ~[druid-1.1.13.jar:1.1.13]
2021-07-31 16:15:58.294 ERROR 4812 --- [reate-425446155] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql//127.0.0.1:3306/miaosha, errorCode 0, state null