spring:
  datasource:
    url: jdbc:mysql://39.xxxxx:3306/advance?characterEncoding=UTF-8
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: aaaa
    password: aaaa
这样配置的结果显示:
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
但是如果我用本地Mysql
spring:
  datasource:
    url: jdbc:mysql://localhost:3306/advance?characterEncoding=UTF-8
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: root
    password: root
就成功写入数据库了2019-06-11 22:13:47.422  INFO 17876 --- [nio-8084-exec-3] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Starting...
2019-06-11 22:13:47.565  INFO 17876 --- [nio-8084-exec-3] com.zaxxer.hikari.HikariDataSource       : HikariPool-1 - Start completed.我的navicat可以成功连接到我的阿里服务器的mysql,请问这是怎么回事,求个解决方法!!