摘要: 在配置完Hibernate,运行时出现错误:log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).log4j:WARN Please initialize the log4j system properly.解决办法如下:在src下面新建file名为log4j.properties内容如下:### direct log messages to stdout ###log4j.appender.stdout=org.apache.log4j.ConsoleAppenderlog4j.ap 阅读全文
posted @ 2012-09-05 20:28 rainbow1314hjj 阅读(211) 评论(0) 推荐(0) 编辑