用JDBC从最开始的Class.forname开始
不try catch就抛出异常,
try catch就正常能用了,讲师也没有try catch啊……
老师用的是声明异常 throws Exception ,这样子可以不用做抛出动作