javax.activation.DataSource.getConnection 发表于: 2020-12-24 2020-12-24 分类: SRE 标签: bash, https, java, post, s3, sql javax.activation.DataSource.getConnection 找不到getConnection()方法 DataSource里找不到getConnection()方法 检查是否导错包:import javax.activation.DataSource; 正确的应该是:import javax.sql.DataSource; 文章导航 前一页 上一篇: Loading class `com.mysql.jdbc.Driver’. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.后一页 下一篇: Establishing SSL connection without server’s identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn’t set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to ‘false’. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification. sjx 429RSS订阅