java - 处理程序调度失败;嵌套异常是 java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
问题描述
我尝试访问 API,然后发生这种类型的错误 - org.springframework.web.util.NestedServletException: Handler dispatch failed; 嵌套异常是 java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient
解决方案
确保您已根据您使用的工具添加了 apache http 组件的依赖项。按照此链接 [apache http 组件的依赖项][1] https://hc.apache.org/httpcomponents-client-ga/httpclient/dependency-info.html 添加依赖项。
推荐阅读
- sql - 如果一个字段具有 NULL 值,则更改行值
- html - ngForm 禁用所有控件
- ethereum - ERC20 交易所网站如何运作?
- docker - Nginx 无法加载 text/css(在 docker 下运行)
- angular - Angular-mdl 中的元素绑定
- django - Django 中的“post”方法
- date - 如何在访问查询中将“29MAY2018”格式的字符串转换为日期
- javascript - 停止链接重定向jquery
- angular - Angular 5+ routerLinkActive 不适用于重复参数
- c++ - 为什么打开USB2Serial端口比第一次花费更长的时间