问答详情
源自:5-2 配置去掉Hibernate的配置文件-Spring整合Hibernate

配置完,运行报错,检查代码一样,找不到问题了。。。求教

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/E:/JavaWorkspaces/MyEclipse2017/.metadata/.me_tcat85/webapps/SSH/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: com.mchange.v2.async.ThreadPoolAsynchronousRunner.<init>(IZLjava/util/Timer;Ljava/lang/String;)V

提问者:yuorchid 2018-01-20 23:07

个回答

  • 请叫我玉米
    2018-02-02 15:24:06

    试试吧sessionFactory的class换成org.springframework.orm.hibernate3.LocalSessionFactoryBean。