org.apache.http.conn.ssl.X509HostnameVerifier错误解决

最初的错误是:

java.lang.RuntimeException: java.lang.ClassNotFoundException: org.glassfish.jersey.client.JerseyClientBuilder

添加以下依赖项解决了初始错误

   
        org.jboss.resteasy
        resteasy-client
        provided
    

然后我们收到了第二个错误:

java.lang.NoClassDefFoundError: org/apache/http/conn/ssl/X509HostnameVerifier

添加以下依赖项解决了第二个(X509HostnameVerifier)错误:

    
        org.apache.httpcomponents
        httpclient
        provided
    

如果还有这样的错误:

java.lang.ClassNotFoundException: org.apache.http.params.HttpParams

还需要依赖:


    org.apache.httpcomponents
    httpcore
    版本号

你可能感兴趣的:(maven,spring,boot,java)