大概率导错包了。

在使用DruidDataSource连接MySQL时,连接失败,报错com.alibaba.druid.pool.DruidPooledConnection cannot be cast to sun.rmi.transport.Connection。

我的原因是导入了错误的包。
正确的应该是import java.sql.Connection;
报错 com.alibaba.druid.pool.DruidPooledConnection cannot be cast to sun.rmi.transport.Connection

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-08-10
  • 2022-01-23
  • 2021-11-20
  • 2021-10-20
  • 2021-08-17
相关资源
相似解决方案