connect

java.net.ConnectException: Connection timed out: connect
Java

java.net.ConnectException: Connection timed out: connect

93 0

java.net.ConnectException: Connection timed out: connect 问题:无法连接至数据库,连接超时。解决:检查项目中数据库连接相关的配置项是否正确!spring.jpa.database=mysqlspring.datasource.url=jdbc:mysql://127.0.0.1:3306/db?allowMultiQueries=true&autoReconne…