日期:2014-05-17  浏览次数:20725 次

spring hibernate 整合错误
整合 spring hibernate 时提示错误:
Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder






------解决方案--------------------
缺少slf4j-log4j.jar包
------解决方案--------------------
确保三个JAR包
log4j-1.2.xx.jar slf4j-log4j12-xx.xx.jar log4j-api-xx.xx.jar

注意(xx.xx)对应版本