1. maven項目
在pom.xml中添加以下依賴:
<dependency>
<groupId>net.sf.json-lib</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
</dependency>
跳出的提示中點擊"Import Changes"

2. 普通項目
需要以下依賴包:
json-lib-2.4-jdk15.jarcommons-beanutils-1.8.0.jarcommons-logging-1.1.1.jarcommons-collections-3.2.1.jarcommons-lang-2.5.jarezmorph-1.0.6.jar
intellij idea添加擴展包方式:
可參考
https://www.cnblogs.com/jayworld/p/9706817.html
