可以看到RequestFormat依赖了org.apache.http.entity.ContentType
所以导致报NoClassDefFoundError
加以下坐标在pom.xml中就能解决这个问题了
dependency>
groupId>org.apache.httpcomponentsgroupId>
artifactId>httpasyncclientartifactId>
version>4.1.4version>
dependency>
dependency>
groupId>org.apache.httpcomponentsgroupId>
artifactId>httpclientartifactId>
version>4.5.6version>
dependency>
dependency>
groupId>org.apache.httpcomponentsgroupId>
artifactId>httpcoreartifactId>
version>4.4.10version>
dependency>
dependency>
groupId>org.apache.httpcomponentsgroupId>
artifactId>httpcore-nioartifactId>
version>4.4.10version>
dependency>
相关推荐: 超微物联网超级服务器IoT SuperServer SYS-210SE-31A 评测
SYS-210SE-31A是Supermicro在日益流行的边缘服务器领域的最新产品。有趣的是,这款2单元430mm短深度服务器提供了3个热插拔节点,每个节点都有1个CPU和8个DIMM插槽。它还具有PCIe Gen4 x16扩展插槽、免工具可维护性和高达55…