chaosxin 发表于 2018-11-26 13:19:24

NoClassDefFoundError: org/apache/commons/collections/map/LRUMap

  Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap
at org.hibernate.util.SimpleMRUCache.init(SimpleMRUCache.java:71)
at org.hibernate.util.SimpleMRUCache.(SimpleMRUCache.java:55)
at org.hibernate.util.SimpleMRUCache.(SimpleMRUCache.java:50)
at org.hibernate.engine.query.QueryPlanCache.(QueryPlanCache.java:65)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:176)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at com.yin.hibernate.model.GuestBookTest.main(GuestBookTest.java:10)

  解决方法:
引入:commons-collections-3.1.jar



页: [1]
查看完整版本: NoClassDefFoundError: org/apache/commons/collections/map/LRUMap