1.删除之前在hibernate集合包中加入的slf4j-nop-12.5.8.jar,因为它与log4j包冲突。
2.建立log4j集合包。
3.加入log4j-1.2.15.jar及log4j.properties。具体见http://download.csdn.net/detail/liudonga515/9306785。即可实现console中显示日志情况。
4.加入slf4j-1.5.8.zip(见http://download.csdn.net/detail/liudonga515/9301497)中的slf4j-log4j12-1.5.8.jar
5.具体架构图如下