问题
Caused by: java.sql.SQLException: No suitable driver found for jdbc:ch://t1:8123/alibaba
解决策略
修改pom,添加scope,设置属性为provided
<dependency>
<!-- will stop using ru.yandex.clickhouse starting from 0.4.0 -->
<groupId>com.clickhouse</groupId>
<artifactId>clickhouse-jdbc</artifactId>
<version>0.3.2-patch4</version>
<!-- below is only needed when all you want is a shaded jar -->
<classifier>http</classifier>
<exclusions>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
<scope>provided</scope>
</dependency>
将clickhouse的jdbc连接包移入lib内