javaweb報錯:Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNo
報錯內容:
Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.
原因:mysql-connecter的jar包太老,mysql版本太新
解決:換個新版本的jar包