问题遇到的现象和发生背景
jdbc下载了并且载入了
问题相关代码,请勿粘贴截图
package Com;
public class Try1 {
public static void main(String[] args) {
// TODO Auto-generated method stub
}
private static final String DBDRIVER="com.mysql.cj.jdbc.Driver";
static {
try {
Class.forName(DBDRIVER);
System.out.println("加载驱动成功");
} catch (ClassNotFoundException e) {
System.out.println("加载驱动失败");
}
}
}
运行结果及报错内容
Error occurred during initialization of boot layer
java.lang.module.FindException: Module format not recognized: D:\谷歌浏览器下载内容\mysql-connector-java-8.0.27.zip