Java教程

代码摘抄:Class Driver, from mysql-connector-java-8.0.17.jar

本文主要是介绍代码摘抄:Class Driver, from mysql-connector-java-8.0.17.jar,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.mysql.cj.jdbc;

import java.sql.DriverManager;
import java.sql.SQLException;

public class Driver extends NonRegisteringDriver implements java.sql.Driver {
    public Driver() throws SQLException {
    }

    static {
        try {
            DriverManager.registerDriver(new Driver());
        } catch (SQLException var1) {
            throw new RuntimeException("Can't register driver!");
        }
    }
}

说明:a same name, interface Driver which is not class from package java.sql on rt.jar

这篇关于代码摘抄:Class Driver, from mysql-connector-java-8.0.17.jar的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!