Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnec

Misssyou發表於2020-11-04
問題:
Exception in thread "main" java.lang.NoClassDefFoundError:org/apache/http/conn/socket/LayeredConnectionSocketFactory
	at com.gsww.customer.OrderConsumer.main(OrderConsumer.java:134)
Caused by: java.lang.ClassNotFoundException: org.apache.http.conn.socket.LayeredConnectionSocketFactory
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 1 more
	**解決:1**
	 ![在這裡插入圖片描述](https://img-blog.csdnimg.cn/20201104152932997.png#pic_center)
	解決:2
	降低springboot版本
	具體還沒分析,先記錄一下

相關文章