1. 程式人生 > >mysql8.0驅動問題

mysql8.0驅動問題

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>8.0.11</version>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>druid</artifactId>
            <version>1.1.12</version>
        </dependency>

jdbc.url=jdbc:mysql://localhost:3306/pabc?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=CTT
jdbc.username=root
jdbc.password=root
jdbc.driverClass=com.mysql.cj.jdbc.Driver