解决:NoClassDefFoundError: org/apache/http/ssl/SSLContexts
开启TLS配置后,启动系统报错,在官方提供的fabric-sdk-java源码pom.xml中,发现对httpcomponent组件唯一的配置如下:
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>
整理下,配置如下,验证通过:
<properties>
<httpclient.version>4.5.8</httpclient.version>
</properties>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
</dependency>