org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controller' defined in file [F:\暑期课程设计\data-selecting-system\dbanalysis\target\classes\cn\sunnie\dbanalysis\controller\controller.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [cn.sunnie.dbanalysis.controller.controller]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap我添加了像map和JSONObject这样的东西,结果是像this>这样的东西,我不知道发生了什么,因为我是这个领域的新手。你能帮我找出问题出在哪里吗?thx~
发布于 2017-08-22 23:29:31
错误消息的最后一部分指向问题的根源:
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap类路径中缺少ListOrderedMap。这个类是commons-collections4库的一部分-将它添加到您的pom.xml (如果您使用Maven)或build.gradle (如果您使用Gradle),刷新依赖项,然后重试。
https://stackoverflow.com/questions/45820290
复制相似问题