在Spring Mvc框架的Controller中使用JSONObject报错,自己整理了一下:
 
 Java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
 
首先,我去官网下载了   
 
commons-lang3-3.5.jar
 
commons-beanutils-1.9.3.jar 
 
ezmorph-1.0.6.jar
 
commons-collections4-4.1.jar
 
commons-logging-1.2.jar
 
 但是依然报错Java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
 
后来下载了commons-lang-2.6.jar  
 
又出现了新的问题java.lang.ClassNotFoundException: org.apache.commons.collections.map.ListOrderedMap 后来又去下载了 commons-collections-3.1.jar 
 
 
 
最后总结了一下:lang3和 lang 的目录名称不同;collections4 和 collections的名称不同 。 
                
        
    
                    转载请注明原文地址: https://ju.6miu.com/read-675728.html