数据连接报错
来源:5-19 两个提高工作效率的神器-Restlet Client和fe助手
qq_慕雪5587484
2019-07-10
[ERROR] Failed to execute goal org.mybatis.generator:mybatis-generator-maven-plugin:1.3.7:generate (default-cli) on project mmall: Cannot connect to database (possibly bad driver/URL combination) -> [Help 1]
db.driverLocation=/Volumes/job/maven/maven-repository/mysql/mysql-connector-java/8.0.16/mysql-connector-java-8.0.16.jar
db.driverClassName=com.mysql.cj.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/mmall_learnin?useUnicode=true&characterEncoding=utf-8&serverTimezone=GMT%2B8&useSSL=FALSE
jdbc.username=root
jdbc.password=12345678
这是properies文件
1回答
-
qq_慕雪5587484
提问者
2019-07-11
问题解决了 原因是generatorConfig.xml 读取不了datasource.properties的jdbc 把jdbc写死在generatorConfig.xm就好了 但是 db.driverLocation写在datasource.properties能读取就是读取不了其他的jdbc
00
相似问题