o.s.boot.SpringApplication:应用程序启动失败

时间:2017-08-22 14:23:04

标签: spring-boot

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的内容,结果结果是这样的> 我不知道发生了什么,因为我是这个领域的新生。 你能帮我找一下问题所在吗? THX〜

1 个答案:

答案 0 :(得分:0)

错误消息的最后一部分指向问题的根源:

//tr[.//a[text()='ACTION20Aliant']][.//td[text()='2018-01-07']]//input[@value='Delete']
类路径中缺少

ListOrderedMap<K,V>。此类是commons-collections4库的一部分 - 将其添加到Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/collections/map/ListOrderedMap (如果您使用Maven)或pom.xml(如果您使用Gradle),刷新依赖项并重试。

相关问题