收藏
回答

云部署java服务,链接数据库地址写的内网地址,一直连不上呢?

  • 03/16 17:56:37
  • springboot-jcl0-007
  • The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • 03/16 17:56:37
  • springboot-jcl0-007
  • Caused by: com.mysql.cj.exceptions.CJCommunicationsException: Communications link failure
  • 03/16 17:56:37
  • springboot-jcl0-007
  • ... 126 common frames omitted
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:81)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:118)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:160)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.pool.HikariPool.(HikariPool.java:100)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:470)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:201)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:359)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:188)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:239)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:440)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:819)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:64)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:175)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  • 03/16 17:56:37
  • springboot-jcl0-007
  • Caused by: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
  • 03/16 17:56:37
  • springboot-jcl0-007
  • ... 114 common frames omitted
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:154)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at jdk.proxy2/jdk.proxy2.$Proxy130.query(Unknown Source)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:59)
  • 03/16 17:56:37
  • springboot-jcl0-007
  • at com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor.intercept(MybatisPlusInterceptor.java:81)


回答关注问题邀请回答
收藏

2 个回答

  • 小刘
    小刘
    03-17

    内网地址不是跟云服务 天然在同一个VPC内吗

    03-17
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    03-16
    有用
登录 后发表内容