hibernate 错误 请指教。。。

来源:百度知道 编辑:UC知道 时间:2024/06/01 23:27:39
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.

这个 错误 指的是 什么???
.
1楼 说的 我 不理解。。
2楼 没使用 spring ,,,
3楼 按你的说法 先配置 struts 然后 hibernate 再 配置 spring 吗?

把log4j.properties放到 \WEB-INF\classes中
应该是部署的问题呵呵

把web.xml贴出来
不知道你有没有用到spring

这个问题一般是使用监听器来启动ContextLoader,所以只要改成用servlet来启动就可以了

少包

那就是少包...

或者是没问题
配置Hibernate之前要配置Spring的话 注意一点 有些文件可能会被覆盖