tomcat访问错误突然自动修复了

tomcat访问数据库数据控制台不断打印重复的错误信息,
错误信息如下

com.alibaba.druid.support.logging.Jakarta CommonsLoggingImpl.     error create connection SQL Exception  url: jdbc:mysql://localhost3306/ssm_cinema?      server Timezone=UTC&useSSL=false,  error Code 0, state 08S01 
com.mysql.jdbc.exceptions.jdbc4.      CommunicationsException: Communications link failure 
com.alibaba.druid.support.logging.JakartaCommonsLoggingImpl.error create connection SQLException, url: jdbc:mysql://localhost3306/ssm_cinema?      serverTimezone=UTC&useSSL=false, errorCode 0, state 08S01 
com.mysql.jdbc.exceptions.jdbc4.      CommunicationsException: Communications link failure

而且网页一直获取不到,
后来又重新修改了druid文件的url格式
网页报错,错误信息如下

img


然后我又把pom文件的版本都修改了,这次可以获取数据访问页面了,我以为是版本冲突,但是我把版本又都修改回来,还是访问正常,有没有知道这是怎么回事的,突然就好了呢,问题出在了哪里呢?