执行Class.forName("com.mysql.jdbc.Driver");连接数据库时抛异常

时间:2022-09-19 11:22:34

异常描述:The server encountered an internal error that prevented it from fulfilling this request.

解决方法:需要在项目中导入驱动jar包,mysql-connector-java.jar