Class.forName是加载Class的方法,没有给driver赋值当然会出现java.lang.NullPointerException
如果找不到字符串提供的Class的话将报
java.lang.ClassNotFoundException