JSONObject没有fromObject方法(Json lib 库的使用)
生活随笔
收集整理的這篇文章主要介紹了
JSONObject没有fromObject方法(Json lib 库的使用)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
剛開始還不知道為啥,最后到?jsonlib 網站上查看了原因,這個是連接地址
Json-lib comes in two flavors, depending on the jdk compatibility. json-lib-x.x-jdk13 is compatible with JDK 1.3.1 and upwards. json-lib-x.x-jdk15 is compatible with JDK 1.5, includes support for Enums in JSONArray and JSONObject. Please reffer to the appropriate javadoc links available in the project menu.
Json-lib requires (at least) the following dependencies in your classpath:
- jakarta commons-lang 2.5
- jakarta commons-beanutils 1.8.0
- jakarta commons-collections 3.2.1
- jakarta commons-logging 1.1.1
- ezmorph 1.0.6
至少需要一下依賴 ,好吧看是下載把
然后到把這5個下載好,添加依賴就可以
這個我下載的如下 可以使用
下載地址
總結
以上是生活随笔為你收集整理的JSONObject没有fromObject方法(Json lib 库的使用)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Error: Default inter
- 下一篇: 花开头的成语大全