出现上述这种错误就是JAR没有引入进来
这时候发现是因为JDK版本的问题,所以需要在加一句
<dependency> <groupId>net.sf.json-lib</groupId> <artifactId>json-lib</artifactId> <version>2.4</version> <classifier>jdk15</classifier> </dependency>