springboot连接数据库 报错com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

spring:
  datasource:
    url: jdbc:mysql://192.168.23.129:3306/springboot?serverTimezone=UTC & useSSL=false
    username: root
    password:
    driver-class-name: com.mysql.cj.jdbc.Driver

少了useSSL=false就会报这个错

你可能感兴趣的:(Java,spring,boot,mysql,数据库)