com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link
The last packet sent successfully to the server was 0 milliseconds ago.
java.net.ConnectException: Connection refused
异常:tomcat主页可以正常打开,但发布的项目会一直在加载。通过mysql安装目录里的exe打开和mysql命令打开皆会出现一行错误然后闪退
原因:mysql服务未打开
解决方案:通过cmd打开mysql服务