Malformed database URL, failed to parse the connection string
Java 配置文件连接mysql错误:Malformed database URL, failed to parse the connection string
旧代码:
jdbc:mysql://localhost:3306/xscj?serverTimezone=UTC&useSSL=false&
useUnicode=true&characterEncoding=utf8
正确写入配置链接:应该使用&符号,不再需要分号
`jdbc:mysql://localhost:3306/xscj?useUnicode=true&&useSSL=false&characterEncoding=utf8&serverTimezone=Asia/Shanghai`
运行成功: